Skip to content

Commit

Permalink
Added typescript typings (#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 arunoda committed May 5, 2016
1 parent 12649ec commit 47537e8
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 47537e8

Please sign in to comment.