UNPKG

571 BTypeScriptView Raw
1/**
2 * Handles dealing with errors for super-gross mode. Creates a context, in which
3 * any synchronously thrown errors will be passed to {@link captureError}. Which
4 * will record the error such that it will be rethrown after the call back is complete.
5 * TODO: Remove in v8
6 * @param cb An immediately executed function.
7 */
8export declare function errorContext(cb: () => void): void;
9/**
10 * Captures errors only in super-gross mode.
11 * @param err the error to capture
12 */
13export declare function captureError(err: any): void;
14//# sourceMappingURL=errorContext.d.ts.map
\No newline at end of file