You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ravenjs/ravenjs.d.ts
+16-12Lines changed: 16 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,20 @@
5
5
6
6
declarevarRaven: RavenStatic;
7
7
8
+
declare module 'raven-js'{
9
+
exportdefaultRaven;
10
+
}
11
+
8
12
interfaceRavenOptions{
9
13
/** The log level associated with this event. Default: error */
10
14
level?: string;
11
15
12
16
/** The name of the logger used by Sentry. Default: javascript */
13
17
logger?: string;
14
-
18
+
15
19
/** The release version of the application you are monitoring with Sentry */
16
20
release?: string;
17
-
21
+
18
22
/** The name of the server or device that the client is running on */
19
23
serverName?: string;
20
24
@@ -36,19 +40,19 @@ interface RavenOptions {
36
40
};
37
41
38
42
extra?: any;
39
-
43
+
40
44
/** In some cases you may see issues where Sentry groups multiple events together when they should be separate entities. In other cases, Sentry simply doesn’t group events together because they’re so sporadic that they never look the same. */
41
45
fingerprint?: string[];
42
-
46
+
43
47
/** A function which allows mutation of the data payload right before being sent to Sentry */
44
48
dataCallback?: (data: any)=>any;
45
-
49
+
46
50
/** A callback function that allows you to apply your own filters to determine if the message should be sent to Sentry. */
47
51
shouldSendCallback?: (data: any)=>boolean;
48
-
52
+
49
53
/** By default, Raven does not truncate messages. If you need to truncate characters for whatever reason, you may set this to limit the length. */
50
54
maxMessageLength?: number;
51
-
55
+
52
56
/** Override the default HTTP data transport handler. */
/** An event id is a globally unique id for the event that was just sent. This event id can be used to find the exact event from within Sentry. */
174
178
lastEventId(): string;
175
-
179
+
176
180
/** If you need to conditionally check if raven needs to be initialized or not, you can use the isSetup function. It will return true if Raven is already initialized. */
0 commit comments