mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 05:21:06 +08:00
18 lines
784 B
TypeScript
18 lines
784 B
TypeScript
/* eslint-disable prefer-destructuring */
|
|
import Preview from './preview';
|
|
|
|
const preview = new Preview();
|
|
|
|
const rawStoriesOf = preview.api().storiesOf.bind(preview);
|
|
export const setAddon = preview.api().setAddon.bind(preview);
|
|
export const addDecorator = preview.api().addDecorator.bind(preview);
|
|
export const addParameters = preview.api().addParameters.bind(preview);
|
|
export const clearDecorators = preview.api().clearDecorators.bind(preview);
|
|
export const configure = preview.configure;
|
|
export const getStorybook = preview.api().getStorybook.bind(preview);
|
|
export const getStorybookUI = preview.getStorybookUI;
|
|
export const raw = preview.api().raw.bind(preview);
|
|
|
|
export const storiesOf = (...args: any[]) =>
|
|
rawStoriesOf(...args).addParameters({ framework: 'react-native' });
|