Error handling bugfix: pass #1

This commit is contained in:
2026-10-02 07:04:22 +01:00
parent 39a5e91eeb
commit d8ea4f8e02
53 changed files with 1179 additions and 410 deletions
+21
View File
@@ -0,0 +1,21 @@
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;