mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): add zod schema for layers array
This commit is contained in:
committed by
Kent Keirsey
parent
e840de27ed
commit
e47629cbe7
@@ -116,6 +116,7 @@ export const zLayer = z.discriminatedUnion('type', [
|
||||
zInitialImageLayer,
|
||||
]);
|
||||
export type Layer = z.infer<typeof zLayer>;
|
||||
export const zLayers = z.array(zLayer);
|
||||
|
||||
export type ControlLayersState = {
|
||||
_version: 2;
|
||||
|
||||
Reference in New Issue
Block a user