diff --git a/config/storybook.d.ts b/config/storybook.d.ts new file mode 100644 index 000000000000..e1a997b9be8b --- /dev/null +++ b/config/storybook.d.ts @@ -0,0 +1,8 @@ +declare var module: any; // dangerous + +interface Story { + add (storyName: string, callback: Function): Story; +} + +export function storiesOf(name: string, module: any): Story; +export function action(name: string, ...params: any[]): Function; diff --git a/package.json b/package.json index 8692d36c0150..03bad9b1395f 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "type": "git", "url": "https://github.com/kadirahq/react-storybook.git" }, + "typings": "./config/storybook.d.ts", "license": "MIT", "options": { "mocha": "--require scripts/mocha_runner src/**/__tests__/**/*.js"