mirror of https://github.com/buster-so/buster.git
accept union of string or number
This commit is contained in:
parent
386d2d5df7
commit
a2c2a4bfee
|
@ -13,7 +13,7 @@ export const DashboardConfigSchema = z.object({
|
||||||
})
|
})
|
||||||
.optional(), // columns sizes 1 - 12. MUST add up to 12
|
.optional(), // columns sizes 1 - 12. MUST add up to 12
|
||||||
rowHeight: z.number().optional(), // pixel based!
|
rowHeight: z.number().optional(), // pixel based!
|
||||||
id: z.string(),
|
id: z.union([z.string(), z.number()]),
|
||||||
items: z.array(
|
items: z.array(
|
||||||
z.object({
|
z.object({
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
|
|
Loading…
Reference in New Issue