UNPKG

359 BTypeScriptView Raw
1import { ComponentType } from 'react';
2import { WebRenderer, Canvas } from 'storybook/internal/types';
3
4interface ReactRenderer extends WebRenderer {
5 component: ComponentType<this['T']>;
6 storyResult: StoryFnReactReturnType;
7 mount: (ui?: JSX.Element) => Promise<Canvas>;
8}
9type StoryFnReactReturnType = JSX.Element;
10
11export { ReactRenderer as R };