storybook/app/angular/standalone.d.ts
Thibaud Av 8704f84d29
feat(angular): add angularBuilderOptions to set some options
The goal is to be able to start sb without angularBrowserTarget to use styles
And also to allow nx to set BuilderOptions without `angularBuilderContext`
2021-11-10 19:32:08 +01:00

20 lines
636 B
TypeScript

import { CLIOptions, LoadOptions, BuilderOptions } from '@storybook/core-common';
import { BuilderContext } from '@angular-devkit/architect';
import { JsonObject } from '@angular-devkit/core';
export type StandaloneOptions = Partial<
CLIOptions &
LoadOptions &
BuilderOptions & {
mode?: 'static' | 'dev';
angularBrowserTarget?: string | null;
angularBuilderOptions?: JsonObject;
angularBuilderContext?: BuilderContext | null;
tsConfig?: string;
}
>;
declare module '@storybook/angular/standalone' {
export default function buildStandalone(options: StandaloneOptions): Promise<unknown>;
}