mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): add zod schema for layers array
This commit is contained in:
parent
e840de27ed
commit
e47629cbe7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user