22 lines
696 B
TypeScript
22 lines
696 B
TypeScript
export type BuildErrorLike = {
|
|
text?: string;
|
|
message?: string;
|
|
id?: string;
|
|
location?: {
|
|
file?: string;
|
|
line?: number;
|
|
column?: number;
|
|
} | null;
|
|
};
|
|
/**
|
|
* Logs each error once — identical error sets are suppressed until the
|
|
* signature changes or `resetBuildErrorLog()` is called (after a successful
|
|
* build). Returns true when something was logged.
|
|
*/
|
|
export declare function logBuildErrorsOnce(errors: BuildErrorLike[], logLine?: (line: string) => void): boolean;
|
|
/**
|
|
* Clears the dedup state so a new incident with the same signature is logged
|
|
* again. Call after a successful build.
|
|
*/
|
|
export declare function resetBuildErrorLog(): void;
|