From 78dea484c9855619be4c9453a71eaa9647e1d77b Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Mon, 23 Sep 2024 11:31:18 +0900 Subject: [PATCH] Fix type for Comfy.Sidebar.Size in apiTypes (#932) --- src/types/apiTypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/apiTypes.ts b/src/types/apiTypes.ts index ea581b59e1..420b902951 100644 --- a/src/types/apiTypes.ts +++ b/src/types/apiTypes.ts @@ -488,7 +488,7 @@ const zSettings = z.record(z.any()).and( 'Comfy.PreviewFormat': z.string(), 'Comfy.PromptFilename': z.boolean(), 'Comfy.Sidebar.Location': z.enum(['left', 'right']), - 'Comfy.Sidebar.Size': z.number(), + 'Comfy.Sidebar.Size': z.enum(['small', 'normal']), 'Comfy.SwitchUser': z.any(), 'Comfy.SnapToGrid.GridSize': z.number(), 'Comfy.TextareaWidget.FontSize': z.number(),