2024-10-13 15:25:30 -07:00
|
|
|
import * as v from 'valibot';
|
2024-08-30 10:28:12 -07:00
|
|
|
|
2024-10-13 15:25:30 -07:00
|
|
|
const directoryLanguageSchema = v.object({
|
|
|
|
locale: v.string(),
|
|
|
|
language: v.string(),
|
2024-08-30 10:28:12 -07:00
|
|
|
servers_count: z.coerce.number().nullable().catch(null),
|
|
|
|
});
|
|
|
|
|
2024-10-13 15:25:30 -07:00
|
|
|
type DirectoryLanguage = v.InferOutput<typeof directoryLanguageSchema>;
|
2024-08-30 10:28:12 -07:00
|
|
|
|
|
|
|
export { directoryLanguageSchema, type DirectoryLanguage };
|