Files
ncd-fe/packages/pl-api/lib/entities/familiar-followers.ts
nicole mikołajczyk ad00129411 pl-api: migrate to oxfmt+oxlint
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2026-02-15 03:00:05 +01:00

21 lines
494 B
TypeScript

import * as v from 'valibot';
import { accountSchema } from './account';
import { filteredArray } from './utils';
/**
* @category Schemas
* @see {@link https://docs.joinmastodon.org/entities/FamiliarFollowers/}
*/
const familiarFollowersSchema = v.object({
id: v.string(),
accounts: filteredArray(accountSchema),
});
/**
* @category Entity types
*/
type FamiliarFollowers = v.InferOutput<typeof familiarFollowersSchema>;
export { familiarFollowersSchema, type FamiliarFollowers };