Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added typescript typings #157

Merged
merged 5 commits into from
May 5, 2016
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/storybook.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare var module: any; // dangerous
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rename this lib directory to config.


declare module "@kadira/storybook" {
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": "./lib/storybook.d.ts",
"license": "MIT",
"options": {
"mocha": "--require scripts/mocha_runner src/**/__tests__/**/*.js"
Expand Down