Skip to content

spaceOpSchema

const spaceOpSchema: ZodDiscriminatedUnion<"type", [ZodObject<{ docName: ZodString; h: ZodOptional<ZodNumber>; kind: ZodString; title: ZodString; type: ZodLiteral<"place">; w: ZodOptional<ZodNumber>; x: ZodOptional<ZodNumber>; y: ZodOptional<ZodNumber>; }, "strip", ZodTypeAny, { docName: string; h?: number; kind: string; title: string; type: "place"; w?: number; x?: number; y?: number; }, { docName: string; h?: number; kind: string; title: string; type: "place"; w?: number; x?: number; y?: number; }>, ZodObject<{ id: ZodString; type: ZodLiteral<"move">; x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { id: string; type: "move"; x: number; y: number; }, { id: string; type: "move"; x: number; y: number; }>, ZodObject<{ h: ZodNumber; id: ZodString; type: ZodLiteral<"resize">; w: ZodNumber; }, "strip", ZodTypeAny, { h: number; id: string; type: "resize"; w: number; }, { h: number; id: string; type: "resize"; w: number; }>]>

Defined in: index.ts:427