2022-04-04 10:36:30 -04:00

25 lines
645 B
TypeScript

import { start } from '@storybook/core';
import { decorateStory } from './decorators';
import './globals';
import { render, renderToDOM } from './render';
const {
configure: coreConfigure,
clientApi,
forceReRender,
} = start(renderToDOM, {
decorateStory,
render,
});
export const { setAddon, addDecorator, addParameters, clearDecorators, getStorybook, raw } =
clientApi;
const framework = 'svelte';
export const storiesOf = (kind: string, m: any) =>
clientApi.storiesOf(kind, m).addParameters({ framework });
export const configure = (loadable: any, m: any) => coreConfigure(framework, loadable, m);
export { forceReRender };