@storybook/angular
Version:
Storybook for Angular: Develop, document, and test UI components in isolation
43 lines (40 loc) • 1.59 kB
TypeScript
import { WebRenderer, Parameters as Parameters$1 } from 'storybook/internal/types';
import { Provider } from '@angular/core';
import { ApplicationConfig } from '@angular/platform-browser';
interface NgModuleMetadata {
/** List of components, directives, and pipes that belong to your component. */
declarations?: any[];
entryComponents?: any[];
/**
* List of modules that should be available to the root Storybook Component and all its children.
* If you want to register application providers or if you want to use the forRoot() pattern,
* please use the `applicationConfig` decorator in combination with the importProvidersFrom helper
* function from @angular/core instead.
*/
imports?: any[];
schemas?: any[];
/**
* List of providers that should be available on the root component and all its children. Use the
* `applicationConfig` decorator to register environemt and application-wide providers.
*/
providers?: Provider[];
}
interface ICollection {
[p: string]: any;
}
interface StoryFnAngularReturnType {
props?: ICollection;
moduleMetadata?: NgModuleMetadata;
applicationConfig?: ApplicationConfig;
template?: string;
styles?: string[];
userDefinedTemplate?: boolean;
}
interface AngularRenderer extends WebRenderer {
component: any;
storyResult: StoryFnAngularReturnType;
}
type Parameters = Parameters$1 & {
bootstrapModuleOptions?: unknown;
};
export { AngularRenderer as A, ICollection as I, NgModuleMetadata as N, Parameters as P, StoryFnAngularReturnType as S };