batch-cluster
Version:
Manage a cluster of child processes
8 lines (7 loc) • 301 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: unknown): string;
export declare function asError(err: unknown): Error;