Worked on creating new characters
This commit is contained in:
9
src/types/TCharacter.ts
Normal file
9
src/types/TCharacter.ts
Normal 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 };
|
@ -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 };
|
Reference in New Issue
Block a user