Skip to content

Commit

Permalink
Added typescript typings (storybookjs#157)
Browse files Browse the repository at this point in the history
* Added typings

* Added typings

* Renamed lib to config

* Updated the type definitions to reflect the module structure.
  • Loading branch information
tomitrescak authored and dcpdev committed May 10, 2016
1 parent a619340 commit 4d21ddd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/storybook.d.ts
Original file line number Diff line number Diff line change
@@ -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;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4d21ddd

Please sign in to comment.