1 | import { Provider } from '@angular/core';
|
2 | import { ApplicationConfig } from '@angular/platform-browser';
|
3 | import { Parameters as DefaultParameters, StoryContext as DefaultStoryContext, WebRenderer } from '@storybook/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 |
|
34 |
|
35 |
|
36 | export type AngularFramework = AngularRenderer;
|
37 | export interface AngularRenderer extends WebRenderer {
|
38 | component: any;
|
39 | storyResult: StoryFnAngularReturnType;
|
40 | }
|
41 | export type Parameters = DefaultParameters & {
|
42 | bootstrapModuleOptions?: unknown;
|
43 | };
|
44 | export type StoryContext = DefaultStoryContext<AngularRenderer> & {
|
45 | parameters: Parameters;
|
46 | };
|