diff --git a/addons/knobs/src/KnobManager.ts b/addons/knobs/src/KnobManager.ts index f59430f73e3..8ef58c373fd 100644 --- a/addons/knobs/src/KnobManager.ts +++ b/addons/knobs/src/KnobManager.ts @@ -49,6 +49,7 @@ function escapeStrings(obj: any): any { interface KnobManagerOptions { escapeHTML?: boolean; disableDebounce?: boolean; + disableForceUpdate?: boolean; } export default class KnobManager { diff --git a/addons/knobs/src/type-defs.ts b/addons/knobs/src/type-defs.ts index a2fd1e4b5b4..469dbdc6f83 100644 --- a/addons/knobs/src/type-defs.ts +++ b/addons/knobs/src/type-defs.ts @@ -18,7 +18,12 @@ export type Mutable = { -readonly [P in keyof T]: T[P] extends readonly (infer U)[] ? U[] : T[P]; }; -type KnobPlus = K & { type: T; groupId?: string; disableDebounce?: boolean; disableForceUpdate?: boolean }; +type KnobPlus = K & { + type: T; + groupId?: string; + disableDebounce?: boolean; + disableForceUpdate?: boolean; +}; export type Knob = T extends 'text' ? KnobPlus>