1 | import { Provider } from '@angular/core';
|
2 | import { ApplicationConfig } from '@angular/platform-browser';
|
3 | import { Parameters as DefaultParameters, StoryContext as DefaultStoryContext, WebRenderer } from 'storybook/internal/types';
|
4 | export interface NgModuleMetadata {
|
5 | |
6 |
|
7 |
|
8 | declarations?: any[];
|
9 | entryComponents?: any[];
|
10 | |
11 |
|
12 |
|
13 |
|
14 | imports?: any[];
|
15 | schemas?: any[];
|
16 | |
17 |
|
18 |
|
19 |
|
20 | providers?: Provider[];
|
21 | }
|
22 | export interface ICollection {
|
23 | [p: string]: any;
|
24 | }
|
25 | export interface StoryFnAngularReturnType {
|
26 | props?: ICollection;
|
27 | moduleMetadata?: NgModuleMetadata;
|
28 | applicationConfig?: ApplicationConfig;
|
29 | template?: string;
|
30 | styles?: string[];
|
31 | userDefinedTemplate?: boolean;
|
32 | }
|
33 | export interface AngularRenderer extends WebRenderer {
|
34 | component: any;
|
35 | storyResult: StoryFnAngularReturnType;
|
36 | }
|
37 | export type Parameters = DefaultParameters & {
|
38 | bootstrapModuleOptions?: unknown;
|
39 | };
|
40 | export type StoryContext = DefaultStoryContext<AngularRenderer> & {
|
41 | parameters: Parameters;
|
42 | };
|