fbredius/storybook

View on GitHub
app/svelte/src/client/preview/index.ts

Summary

Maintainability
A
35 mins
Test Coverage
import { start } from '@storybook/core/client';
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 };