type corrections
This commit is contained in:
parent
5fe4ed19bf
commit
d656e0170b
|
|
@ -2,10 +2,10 @@ import { z } from "zod";
|
||||||
import { actionSchema } from "../action/schema";
|
import { actionSchema } from "../action/schema";
|
||||||
|
|
||||||
export const chainSchema = z.object({
|
export const chainSchema = z.object({
|
||||||
_id: z.string().uuid(),
|
_id: z.string().uuid().optional(),
|
||||||
name: z.string().nullable(),
|
name: z.string().nullable(),
|
||||||
actions: z.array(actionSchema),
|
actions: z.array(actionSchema).optional(),
|
||||||
lastModified: z.string(),
|
lastModified: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Chain = z.infer<typeof chainSchema>;
|
export type Chain = z.infer<typeof chainSchema>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user