UNPKG

680 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { Diagnostic } from 'typescript';
9import type { Compilation } from 'webpack';
10export type DiagnosticsReporter = (diagnostics: readonly Diagnostic[]) => void;
11export declare function createDiagnosticsReporter(compilation: Compilation, formatter: (diagnostic: Diagnostic) => string): DiagnosticsReporter;
12export declare function addWarning(compilation: Compilation, message: string): void;
13export declare function addError(compilation: Compilation, message: string): void;