From 6f54fe9003ace31a1418259754a20999246409e4 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 27 Jul 2023 15:46:50 +1000 Subject: [PATCH] fix(ui): fix types for controlnet models `ControlNetModelConfig` was split into `ControlNetModelCheckpointConfig` and `ControlNetModelDiffusersConfig`, need to update the UI types --- invokeai/frontend/web/src/services/api/types.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/services/api/types.d.ts b/invokeai/frontend/web/src/services/api/types.d.ts index 7d9040321c..17f20ca1ac 100644 --- a/invokeai/frontend/web/src/services/api/types.d.ts +++ b/invokeai/frontend/web/src/services/api/types.d.ts @@ -42,8 +42,13 @@ export type ControlField = components['schemas']['ControlField']; // Model Configs export type LoRAModelConfig = components['schemas']['LoRAModelConfig']; export type VaeModelConfig = components['schemas']['VaeModelConfig']; +export type ControlNetModelCheckpointConfig = + components['schemas']['ControlNetModelCheckpointConfig']; +export type ControlNetModelDiffusersConfig = + components['schemas']['ControlNetModelDiffusersConfig']; export type ControlNetModelConfig = - components['schemas']['ControlNetModelConfig']; + | ControlNetModelCheckpointConfig + | ControlNetModelDiffusersConfig; export type TextualInversionModelConfig = components['schemas']['TextualInversionModelConfig']; export type DiffusersModelConfig =