@ngtools/webpack
Version:
Webpack plugin that AoT compiles your Angular components and modules.
14 lines (13 loc) • 680 B
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Diagnostic } from 'typescript';
import type { Compilation } from 'webpack';
export type DiagnosticsReporter = (diagnostics: readonly Diagnostic[]) => void;
export declare function createDiagnosticsReporter(compilation: Compilation, formatter: (diagnostic: Diagnostic) => string): DiagnosticsReporter;
export declare function addWarning(compilation: Compilation, message: string): void;
export declare function addError(compilation: Compilation, message: string): void;