sendou.ink/utils/validators/votes.ts
2021-03-18 21:36:23 +02:00

9 lines
152 B
TypeScript

import * as z from "zod";
export const votesSchema = z.array(
z.object({
score: z.number().min(-2).max(2).int(),
userId: z.number(),
})
);