UNPKG

666 BTypeScriptView Raw
1import { WebRenderer, ArgsStoryFn } from '@storybook/types';
2import { SourceType } from '@storybook/docs-tools';
3
4type StoryFnHtmlReturnType = string | Node;
5interface HtmlRenderer extends WebRenderer {
6 component: string | HTMLElement | ArgsStoryFn<HtmlRenderer>;
7 storyResult: StoryFnHtmlReturnType;
8}
9interface Parameters {
10 renderer: 'html';
11 docs?: {
12 story: {
13 inline: boolean;
14 };
15 source: {
16 type: SourceType.DYNAMIC;
17 language: 'html';
18 code: any;
19 excludeDecorators: any;
20 };
21 };
22}
23
24export { HtmlRenderer as H, Parameters as P, StoryFnHtmlReturnType as S };