1 | import { WebRenderer, ArgsStoryFn } from '@storybook/types';
|
2 | import { SourceType } from '@storybook/docs-tools';
|
3 |
|
4 | type StoryFnHtmlReturnType = string | Node;
|
5 | interface HtmlRenderer extends WebRenderer {
|
6 | component: string | HTMLElement | ArgsStoryFn<HtmlRenderer>;
|
7 | storyResult: StoryFnHtmlReturnType;
|
8 | }
|
9 | interface 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 |
|
24 | export { HtmlRenderer as H, Parameters as P, StoryFnHtmlReturnType as S };
|