mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
858 B
29 lines
858 B
/**
|
|
* @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.dev/license
|
|
*/
|
|
/**
|
|
* How to handle potential diagnostics.
|
|
*/
|
|
export type DiagnosticHandlingStrategy = 'error' | 'warning' | 'ignore';
|
|
/**
|
|
* This class is used to collect and then report warnings and errors that occur during the execution
|
|
* of the tools.
|
|
*
|
|
* @publicApi used by CLI
|
|
*/
|
|
export declare class Diagnostics {
|
|
readonly messages: {
|
|
type: 'warning' | 'error';
|
|
message: string;
|
|
}[];
|
|
get hasErrors(): boolean;
|
|
add(type: DiagnosticHandlingStrategy, message: string): void;
|
|
warn(message: string): void;
|
|
error(message: string): void;
|
|
merge(other: Diagnostics): void;
|
|
formatDiagnostics(message: string): string;
|
|
}
|
|
|