@nestjs/cli
Version:
The Nest CLI: create NestJS applications, generate modules, controllers and CRUD resources, and build, run and watch projects and monorepos.
28 lines (27 loc) • 996 B
TypeScript
import type { AssetsManager } from '../assets-manager.js';
export interface BundlerStats {
hasErrors(): boolean;
toString(options: {
chunks: boolean;
colors: boolean;
modules: boolean;
assets: boolean;
}): string;
}
export interface BundlerCallbackCompletion {
resolve: () => void;
reject: (err: unknown) => void;
}
export interface BundlerAfterCallbackOptions {
bundlerName: string;
onSuccess: (() => void) | undefined;
assetsManager: AssetsManager;
watchMode: boolean;
watch: boolean | undefined;
onComplete?: BundlerCallbackCompletion;
}
/**
* Creates the completion callback shared by `RspackCompiler` and
* `WebpackCompiler` for both `compiler.run()` and `compiler.watch()`.
*/
export declare function createBundlerAfterCallback({ bundlerName, onSuccess, assetsManager, watchMode, watch, onComplete, }: BundlerAfterCallbackOptions): (err: Error | null | undefined, stats: BundlerStats | undefined) => undefined;