Skip to content

Commit

Permalink
chore: add flow typed
Browse files Browse the repository at this point in the history
  • Loading branch information
shaun-sweet committed Feb 21, 2018
1 parent 192b373 commit 9a2e061
Show file tree
Hide file tree
Showing 77 changed files with 30,998 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
[lints]

[options]

all=true
[strict]
12 changes: 12 additions & 0 deletions flow-typed/npm/@storybook/addon-actions_v3.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// flow-typed signature: d33e1b8f0888822895515e3ca6a3f8eb
// flow-typed version: 1709d3212d/@storybook/addon-actions_v3.x.x/flow_>=v0.25.x

declare module '@storybook/addon-actions' {
declare type Action = (name: string) => Function;
declare type DecorateFn = (args: Array<any>) => Array<any>;

declare module.exports: {
action: Action,
decorateAction(args: Array<DecorateFn>): Action;
};
}
123 changes: 123 additions & 0 deletions flow-typed/npm/@storybook/addon-links_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
// flow-typed signature: 2497b34634d4a09116cacb462ca6c867
// flow-typed version: <<STUB>>/@storybook/addon-links_v3.3.13/flow_v0.66.0

/**
* This is an autogenerated libdef stub for:
*
* '@storybook/addon-links'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@storybook/addon-links' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@storybook/addon-links/dist/index' {
declare module.exports: any;
}

declare module '@storybook/addon-links/dist/manager' {
declare module.exports: any;
}

declare module '@storybook/addon-links/dist/preview' {
declare module.exports: any;
}

declare module '@storybook/addon-links/dist/react/components/link' {
declare module.exports: any;
}

declare module '@storybook/addon-links/dist/react/index' {
declare module.exports: any;
}

declare module '@storybook/addon-links/react' {
declare module.exports: any;
}

declare module '@storybook/addon-links/register' {
declare module.exports: any;
}

declare module '@storybook/addon-links/src/index' {
declare module.exports: any;
}

declare module '@storybook/addon-links/src/manager' {
declare module.exports: any;
}

declare module '@storybook/addon-links/src/preview' {
declare module.exports: any;
}

declare module '@storybook/addon-links/src/preview.test' {
declare module.exports: any;
}

declare module '@storybook/addon-links/src/react/components/link' {
declare module.exports: any;
}

declare module '@storybook/addon-links/src/react/components/link.test' {
declare module.exports: any;
}

declare module '@storybook/addon-links/src/react/index' {
declare module.exports: any;
}

// Filename aliases
declare module '@storybook/addon-links/dist/index.js' {
declare module.exports: $Exports<'@storybook/addon-links/dist/index'>;
}
declare module '@storybook/addon-links/dist/manager.js' {
declare module.exports: $Exports<'@storybook/addon-links/dist/manager'>;
}
declare module '@storybook/addon-links/dist/preview.js' {
declare module.exports: $Exports<'@storybook/addon-links/dist/preview'>;
}
declare module '@storybook/addon-links/dist/react/components/link.js' {
declare module.exports: $Exports<'@storybook/addon-links/dist/react/components/link'>;
}
declare module '@storybook/addon-links/dist/react/index.js' {
declare module.exports: $Exports<'@storybook/addon-links/dist/react/index'>;
}
declare module '@storybook/addon-links/react.js' {
declare module.exports: $Exports<'@storybook/addon-links/react'>;
}
declare module '@storybook/addon-links/register.js' {
declare module.exports: $Exports<'@storybook/addon-links/register'>;
}
declare module '@storybook/addon-links/src/index.js' {
declare module.exports: $Exports<'@storybook/addon-links/src/index'>;
}
declare module '@storybook/addon-links/src/manager.js' {
declare module.exports: $Exports<'@storybook/addon-links/src/manager'>;
}
declare module '@storybook/addon-links/src/preview.js' {
declare module.exports: $Exports<'@storybook/addon-links/src/preview'>;
}
declare module '@storybook/addon-links/src/preview.test.js' {
declare module.exports: $Exports<'@storybook/addon-links/src/preview.test'>;
}
declare module '@storybook/addon-links/src/react/components/link.js' {
declare module.exports: $Exports<'@storybook/addon-links/src/react/components/link'>;
}
declare module '@storybook/addon-links/src/react/components/link.test.js' {
declare module.exports: $Exports<'@storybook/addon-links/src/react/components/link.test'>;
}
declare module '@storybook/addon-links/src/react/index.js' {
declare module.exports: $Exports<'@storybook/addon-links/src/react/index'>;
}
37 changes: 37 additions & 0 deletions flow-typed/npm/@storybook/react_v3.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// flow-typed signature: c2e1b132d2729c977d6b3e54e0134de5
// flow-typed version: 1709d3212d/@storybook/react_v3.x.x/flow_>=v0.28.x

type NodeModule = typeof module;

declare module '@storybook/react' {
declare type Renderable = React$Element<any>;
declare type RenderFunction = () => Renderable;

declare type StoryDecorator = (
story: RenderFunction,
context: { kind: string, story: string }
) => Renderable | null;

declare interface Story {
add(storyName: string, callback: RenderFunction): Story,
addDecorator(decorator: StoryDecorator): Story,
}

declare interface StoryObject {
name: string,
render: RenderFunction,
}

declare interface StoryBucket {
kind: string,
stories: Array<StoryObject>,
}

declare function addDecorator(decorator: StoryDecorator): void;
declare function configure(fn: () => void, module: NodeModule): void;
declare function setAddon(addon: Object): void;
declare function storiesOf(name: string, module: NodeModule): Story;
declare function storiesOf<T>(name: string, module: NodeModule): Story & T;

declare function getStorybook(): Array<StoryBucket>;
}
Loading

0 comments on commit 9a2e061

Please sign in to comment.