1 | import { Integration } from '@sentry/types';
|
2 | declare type UnhandledRejectionMode = 'none' | 'warn' | 'strict';
|
3 |
|
4 | export declare class OnUnhandledRejection implements Integration {
|
5 | private readonly _options;
|
6 | |
7 |
|
8 |
|
9 | static id: string;
|
10 | |
11 |
|
12 |
|
13 | name: string;
|
14 | |
15 |
|
16 |
|
17 | constructor(_options?: {
|
18 | |
19 |
|
20 |
|
21 |
|
22 | mode: UnhandledRejectionMode;
|
23 | });
|
24 | /**
|
25 | * @inheritDoc
|
26 | */
|
27 | setupOnce(): void;
|
28 | /**
|
29 | * Send an exception with reason
|
30 | * @param reason string
|
31 | * @param promise promise
|
32 | */
|
33 | sendUnhandledPromise(reason: any, promise: any): void;
|
34 | /**
|
35 | * Handler for `mode` option
|
36 | */
|
37 | private _handleRejection;
|
38 | }
|
39 | export {};
|
40 |
|
\ | No newline at end of file |