Worked on creating new characters

This commit is contained in:
2024-05-28 23:46:55 +02:00
parent da728a1fc6
commit 8cd0e9254a
9 changed files with 70 additions and 24 deletions

9
src/types/TCharacter.ts Normal file
View File

@ -0,0 +1,9 @@
import { z } from "zod";
const CharacterObject = z.object({
name: z.string(),
});
type TCharacter = z.infer<typeof CharacterObject>;
export { CharacterObject, type TCharacter };

View File

@ -4,6 +4,6 @@ const UserObject = z.object({
username: z.string(),
});
type UserType = z.infer<typeof UserObject>;
type TUser = z.infer<typeof UserObject>;
export { UserObject, type UserType };
export { UserObject, type TUser };