bigbuffet-rw/packages/pl-api/lib/entities/directory/language.ts
marcin mikołajczak db19522a54 pl-api: add server directory client
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-30 19:28:12 +02:00

11 lines
306 B
TypeScript

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 };