template-project/node_modules/batch-cluster/dist/Error.d.ts
2025-05-30 18:13:30 +08:00

8 lines
293 B
TypeScript

/**
* When we wrap errors, an Error always prefixes the toString() and stack with
* "Error: ", so we can remove that prefix.
*/
export declare function tryEach(arr: (() => void)[]): void;
export declare function cleanError(s: any): string;
export declare function asError(err: any): Error;