Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
896 B
Plaintext
20 lines
896 B
Plaintext
import type { Client } from '@sentry/core';
|
|
type UnhandledRejectionMode = 'none' | 'warn' | 'strict';
|
|
type IgnoreMatcher = {
|
|
name?: string | RegExp;
|
|
message?: string | RegExp;
|
|
};
|
|
interface OnUnhandledRejectionOptions {
|
|
/**
|
|
* Option deciding what to do after capturing unhandledRejection,
|
|
* that mimicks behavior of node's --unhandled-rejection flag.
|
|
*/
|
|
mode: UnhandledRejectionMode;
|
|
/** Rejection Errors to ignore (don't capture or warn). */
|
|
ignore?: IgnoreMatcher[];
|
|
}
|
|
export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/core").Integration;
|
|
/** Core handler */
|
|
export declare function makeUnhandledPromiseHandler(client: Client, options: OnUnhandledRejectionOptions): (reason: unknown, promise: unknown) => void;
|
|
export {};
|
|
//# sourceMappingURL=onunhandledrejection.d.ts.map |