Skip to content

Commit

Permalink
Merge pull request #1164 from Gongreg/master
Browse files Browse the repository at this point in the history
Fixed withKnobs definition.
  • Loading branch information
ndelangen authored May 30, 2017
2 parents de0e0a1 + 78e5015 commit 64f33be
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions addons/knobs/storybook-addon-knobs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ interface NumberOptions {
step: number,
}

interface withKnobs {
(storyFn: Function, context: StoryContext): React.ReactElement<IWrapStoryProps>;
}

export function knob<T>(name: string, options: KnobOption<T>): T;

export function text(name: string, value: string | null): string;
Expand All @@ -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<IWrapStoryProps>;
export function withKnobsOptions(options: Object): (storyFn: Function, context: StoryContext) => React.ReactElement<IWrapStoryProps>;

0 comments on commit 64f33be

Please sign in to comment.