pleroma/packages/pl-api/lib/entities/directory/language.ts

12 lines
306 B
TypeScript
Raw Normal View History

import { z } from 'zod';
const directoryLanguageSchema = z.object({
locale: z.string(),
language: z.string(),
servers_count: z.coerce.number().nullable().catch(null),
});
type DirectoryLanguage = z.infer<typeof directoryLanguageSchema>;
export { directoryLanguageSchema, type DirectoryLanguage };