feat(ui): add zod schema for layers array

This commit is contained in:
psychedelicious 2024-05-07 16:49:10 +10:00 committed by Kent Keirsey
parent e840de27ed
commit e47629cbe7

View File

@ -116,6 +116,7 @@ export const zLayer = z.discriminatedUnion('type', [
zInitialImageLayer, zInitialImageLayer,
]); ]);
export type Layer = z.infer<typeof zLayer>; export type Layer = z.infer<typeof zLayer>;
export const zLayers = z.array(zLayer);
export type ControlLayersState = { export type ControlLayersState = {
_version: 2; _version: 2;