-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
41 lines (36 loc) · 1 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export {
addGlobalEventProcessor,
addBreadcrumb,
captureException,
captureEvent,
captureMessage,
configureScope,
getHubFromCarrier,
getCurrentHub,
Hub,
Scope,
setContext,
setExtra,
setExtras,
setTag,
setTags,
setUser,
withScope
} from "@sentry/core";
import { initAndBind } from "@sentry/core";
type InitOpts = Parameters<typeof initAndBind>[1] & { event: FetchEvent };
export function init(opts: InitOpts): void;
/**
* A promise that resolves when all current events have been sent.
* If you provide a timeout and the queue takes longer to drain the promise returns false.
*
* @param timeout Maximum time in ms the client should wait.
*/
export function flush(timeout?: number): Promise<void>;
/**
* A promise that resolves when all current events have been sent.
* If you provide a timeout and the queue takes longer to drain the promise returns false.
*
* @param timeout Maximum time in ms the client should wait.
*/
export function close(timeout?: number): Promise<void>;