mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): constrain w/h in imageoutput schema
This commit is contained in:
@@ -206,8 +206,8 @@ export type ProgressImage = z.infer<typeof zProgressImage>;
|
||||
// #region ImageOutput
|
||||
export const zImageOutput = z.object({
|
||||
image: zImageField,
|
||||
width: z.number().int(),
|
||||
height: z.number().int(),
|
||||
width: z.number().int().gt(0),
|
||||
height: z.number().int().gt(0),
|
||||
type: z.literal('image_output'),
|
||||
});
|
||||
export type ImageOutput = z.infer<typeof zImageOutput>;
|
||||
|
||||
Reference in New Issue
Block a user