From 2c49c27cd25bb8ab1b9abb804618dfb189cd7b4b Mon Sep 17 00:00:00 2001 From: Phil Cockfield Date: Tue, 20 Sep 2016 20:32:35 +1200 Subject: [PATCH] Update TypeScript definition to include `addDecorator`. --- config/storybook.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/storybook.d.ts b/config/storybook.d.ts index e1a997b9be8b..f1d56fab22b6 100644 --- a/config/storybook.d.ts +++ b/config/storybook.d.ts @@ -1,7 +1,12 @@ declare var module: any; // dangerous +interface StoryDecorator { + (story: Function): Object; +} + interface Story { add (storyName: string, callback: Function): Story; + addDecorator (decorator: StoryDecorator): Story; } export function storiesOf(name: string, module: any): Story;