1 | import { StorybookConfig as StorybookConfigBase, TypescriptOptions as TypescriptOptionsReact } from '@storybook/core-webpack';
|
2 | import { StorybookConfigWebpack, BuilderOptions, TypescriptOptions as TypescriptOptionsBuilder } from '@storybook/builder-webpack5';
|
3 | import { CompatibleString } from 'storybook/internal/types';
|
4 | type FrameworkName = CompatibleString<'@storybook/angular'>;
|
5 | type BuilderName = CompatibleString<'@storybook/builder-webpack5'>;
|
6 | export type FrameworkOptions = AngularOptions & {
|
7 | builder?: BuilderOptions;
|
8 | };
|
9 | type StorybookConfigFramework = {
|
10 | framework: FrameworkName | {
|
11 | name: FrameworkName;
|
12 | options: FrameworkOptions;
|
13 | };
|
14 | core?: StorybookConfigBase['core'] & {
|
15 | builder?: BuilderName | {
|
16 | name: BuilderName;
|
17 | options: BuilderOptions;
|
18 | };
|
19 | };
|
20 | typescript?: Partial<TypescriptOptionsBuilder & TypescriptOptionsReact> & StorybookConfigBase['typescript'];
|
21 | };
|
22 |
|
23 |
|
24 |
|
25 | export type StorybookConfig = Omit<StorybookConfigBase, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
|
26 | export interface AngularOptions {
|
27 | enableIvy?: boolean;
|
28 | enableNgcc?: boolean;
|
29 | }
|
30 | export {};
|