skills should be a tuple
This commit is contained in:
parent
328d697873
commit
75cef78d8b
@ -51,7 +51,7 @@ const Character = z.object({
|
|||||||
img: z.string(),
|
img: z.string(),
|
||||||
health: z.number().int(),
|
health: z.number().int(),
|
||||||
speed: z.number().int(),
|
speed: z.number().int(),
|
||||||
skills: z.array(Skill)
|
skills: z.tuple([Skill, Skill, Skill])
|
||||||
});
|
});
|
||||||
export type Character = z.infer<typeof Character>;
|
export type Character = z.infer<typeof Character>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user