mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
match old API
This commit is contained in:
parent
374b5e5980
commit
ae37d7b4f3
@ -2,7 +2,7 @@ export {
|
|||||||
storiesOf,
|
storiesOf,
|
||||||
setAddon,
|
setAddon,
|
||||||
addDecorator,
|
addDecorator,
|
||||||
Decorator,
|
StoryDecorator,
|
||||||
addParameters,
|
addParameters,
|
||||||
configure,
|
configure,
|
||||||
getStorybook,
|
getStorybook,
|
||||||
|
@ -27,7 +27,7 @@ export const storiesOf: ClientApi['storiesOf'] = (kind, m) => {
|
|||||||
|
|
||||||
export const configure: ClientApi['configure'] = (...args) => api.configure(...args, framework);
|
export const configure: ClientApi['configure'] = (...args) => api.configure(...args, framework);
|
||||||
export const addDecorator: ClientApi['addDecorator'] = api.clientApi.addDecorator;
|
export const addDecorator: ClientApi['addDecorator'] = api.clientApi.addDecorator;
|
||||||
export type Decorator = Parameters<typeof addDecorator>[0];
|
export type StoryDecorator = Parameters<typeof addDecorator>[0];
|
||||||
export const addParameters: ClientApi['addParameters'] = api.clientApi.addParameters;
|
export const addParameters: ClientApi['addParameters'] = api.clientApi.addParameters;
|
||||||
export const clearDecorators: ClientApi['clearDecorators'] = api.clientApi.clearDecorators;
|
export const clearDecorators: ClientApi['clearDecorators'] = api.clientApi.clearDecorators;
|
||||||
export const setAddon: ClientApi['setAddon'] = api.clientApi.setAddon;
|
export const setAddon: ClientApi['setAddon'] = api.clientApi.setAddon;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user