added zod for easier validation (wip)
This commit is contained in:
5
src/app/types/zod/CharacterCreate.ts
Normal file
5
src/app/types/zod/CharacterCreate.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const ZCharacterCreate = z.object({
|
||||
name: z.string().min(3).max(255)
|
||||
});
|
Reference in New Issue
Block a user