Skip to content
Closed
Changes from all 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
23 changes: 21 additions & 2 deletions config/storybook.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
// Type definitions for dist/client/index.js
// Project: https://github.com/kadirahq/react-storybook

declare var module: any; // dangerous

interface StoryApi {
add (storyName: string, callback: Function): StoryApi;
}

interface Story {
add (storyName: string, callback: Function): Story;
name: string;
render: Function[];
}

export function storiesOf(name: string, module: any): Story;
interface Book {
kind: string;
stories: Story[];
}

export function storiesOf(name: string, module: any): StoryApi;
export function setAddon(module: any): void;
export function addDecorator(module: Function);
export function getStorybook(): Book[];
export function configure(loaders: Function[], module: any);

export function action(name: string, ...params: any[]): Function;
export function linkTo(name: string, story: any): Function;