mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): constrain w/h in imageoutput schema
This commit is contained in:
parent
803fb393bb
commit
5386a286fd
@ -206,8 +206,8 @@ export type ProgressImage = z.infer<typeof zProgressImage>;
|
|||||||
// #region ImageOutput
|
// #region ImageOutput
|
||||||
export const zImageOutput = z.object({
|
export const zImageOutput = z.object({
|
||||||
image: zImageField,
|
image: zImageField,
|
||||||
width: z.number().int(),
|
width: z.number().int().gt(0),
|
||||||
height: z.number().int(),
|
height: z.number().int().gt(0),
|
||||||
type: z.literal('image_output'),
|
type: z.literal('image_output'),
|
||||||
});
|
});
|
||||||
export type ImageOutput = z.infer<typeof zImageOutput>;
|
export type ImageOutput = z.infer<typeof zImageOutput>;
|
||||||
|
Loading…
Reference in New Issue
Block a user