@types/storybook__react
Advanced tools
Comparing version 3.0.9 to 4.0.0
@@ -1,5 +0,6 @@ | ||
// Type definitions for @storybook/react 3.0 | ||
// Type definitions for @storybook/react 4.0 | ||
// Project: https://github.com/storybooks/storybook | ||
// Definitions by: Joscha Feth <https://github.com/joscha> | ||
// Anton Izmailov <https://github.com/wapgear> | ||
// Dan Dean <https://github.com/dandean> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -15,2 +16,5 @@ // TypeScript Version: 2.8 | ||
export interface DecoratorParameters { | ||
[key: string]: any; | ||
} | ||
export type StoryDecorator = (story: RenderFunction, context: { kind: string, story: string }) => Renderable | null; | ||
@@ -20,7 +24,10 @@ | ||
readonly kind: string; | ||
add(storyName: string, callback: RenderFunction): this; | ||
add(storyName: string, callback: RenderFunction, parameters?: DecoratorParameters): this; | ||
addDecorator(decorator: StoryDecorator): this; | ||
addParameters(parameters: DecoratorParameters): this; | ||
} | ||
export function addDecorator(decorator: StoryDecorator): void; | ||
export function addParameters(parameters: DecoratorParameters): void; | ||
export function clearDecorators(): void; | ||
export function configure(fn: () => void, module: NodeModule): void; | ||
@@ -27,0 +34,0 @@ export function setAddon(addon: object): void; |
{ | ||
"name": "@types/storybook__react", | ||
"version": "3.0.9", | ||
"version": "4.0.0", | ||
"description": "TypeScript definitions for @storybook/react", | ||
@@ -16,5 +16,11 @@ "license": "MIT", | ||
"githubUsername": "wapgear" | ||
}, | ||
{ | ||
"name": "Dan Dean", | ||
"url": "https://github.com/dandean", | ||
"githubUsername": "dandean" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -29,4 +35,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "f5c738b5b35205a5844f32507853f04e3c8e0c6dac8feefefef1bc9ab68628ba", | ||
"typesPublisherContentHash": "761e65903b678b552c9afaeea5eca7627a0202635909f8a8b1d6f47a6327e3ce", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 06 Aug 2018 21:55:32 GMT | ||
* Last updated: Tue, 06 Nov 2018 21:38:45 GMT | ||
* Dependencies: react, webpack-env | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Joscha Feth <https://github.com/joscha>, Anton Izmailov <https://github.com/wapgear>. | ||
These definitions were written by Joscha Feth <https://github.com/joscha>, Anton Izmailov <https://github.com/wapgear>, Dan Dean <https://github.com/dandean>. |
Sorry, the diff of this file is not supported yet
4498
38