UNPKG

564 BTypeScriptView Raw
1/**
2 * Takes the deprecated addon-info API, addWithInfo, and converts to the new withInfo API.
3 *
4 * @example Of deprecated addWithInfo API:
5 *
6 * ```jsx
7 * storiesOf('Button').addWithInfo('story name', 'Story description.', () => (
8 * <Button label="The Button" />
9 * ));
10 * ```
11 *
12 * Converts to the new withInfo API:
13 *
14 * ```jsx
15 * storiesOf('Button').add(
16 * 'story name',
17 * withInfo('Story description.')(() => <Button label="The Button" />)
18 * );
19 * ```
20 */
21declare function transformer(file: any, api: any): any;
22
23export { transformer as default };