Update GroupTag schema
This commit is contained in:
parent
5d29666b41
commit
8702c16998
1 changed files with 4 additions and 4 deletions
|
@ -2,11 +2,11 @@ import z from 'zod';
|
|||
|
||||
const groupTagSchema = z.object({
|
||||
id: z.string(),
|
||||
uses: z.number(),
|
||||
name: z.string(),
|
||||
url: z.string(),
|
||||
pinned: z.boolean().catch(false),
|
||||
visible: z.boolean().default(true),
|
||||
uses: z.number().optional(),
|
||||
url: z.string().optional(),
|
||||
pinned: z.boolean().optional().catch(false),
|
||||
visible: z.boolean().optional().default(true),
|
||||
});
|
||||
|
||||
type GroupTag = z.infer<typeof groupTagSchema>;
|
||||
|
|
Loading…
Reference in a new issue