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