mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 03:41:06 +08:00
24 lines
623 B
Markdown
24 lines
623 B
Markdown
```ts renderer="common" language="ts"
|
|
export interface Builder<Config, Stats> {
|
|
start: (args: {
|
|
options: Options;
|
|
startTime: ReturnType<typeof process.hrtime>;
|
|
router: Router;
|
|
server: Server;
|
|
}) => Promise<void | {
|
|
stats?: Stats;
|
|
totalTime: ReturnType<typeof process.hrtime>;
|
|
bail: (e?: Error) => Promise<void>;
|
|
}>;
|
|
build: (arg: {
|
|
options: Options;
|
|
startTime: ReturnType<typeof process.hrtime>;
|
|
}) => Promise<void | Stats>;
|
|
bail: (e?: Error) => Promise<void>;
|
|
getConfig: (options: Options) => Promise<Config>;
|
|
corePresets?: string[];
|
|
overridePresets?: string[];
|
|
}
|
|
```
|
|
|