From 78e50155b924b08ad2bb3ac02d789b1c39b38c67 Mon Sep 17 00:00:00 2001 From: Gytis Vinclovas Date: Tue, 30 May 2017 20:33:12 +0300 Subject: [PATCH] Fixed withKnobs definition. --- addons/knobs/storybook-addon-knobs.d.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/addons/knobs/storybook-addon-knobs.d.ts b/addons/knobs/storybook-addon-knobs.d.ts index 80e7fc4f109d..37d0f8e751d3 100644 --- a/addons/knobs/storybook-addon-knobs.d.ts +++ b/addons/knobs/storybook-addon-knobs.d.ts @@ -17,10 +17,6 @@ interface NumberOptions { step: number, } -interface withKnobs { - (storyFn: Function, context: StoryContext): React.ReactElement; -} - export function knob(name: string, options: KnobOption): T; export function text(name: string, value: string | null): string; @@ -46,4 +42,5 @@ interface IWrapStoryProps { initialContent?: Object; } -export function withKnobsOptions(options: Object): (storyFn: Function, context: StoryContext) => withKnobs; +export function withKnobs(storyFn: Function, context: StoryContext): React.ReactElement; +export function withKnobsOptions(options: Object): (storyFn: Function, context: StoryContext) => React.ReactElement;