We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 551021f commit 551d597Copy full SHA for 551d597
packages/raven-js/typescript/raven-tests.ts
@@ -65,6 +65,14 @@ Raven.setUserContext({
65
email: 'matt@example.com',
66
id: '123'
67
});
68
+Raven.setUserContext({
69
+ email: 'matt@example.com',
70
+ id: '123',
71
+ projects: [
72
+ {id: 0, name: 'my project'},
73
+ {id: 1, name: 'my other project'},
74
+ ]
75
+});
76
77
Raven.setExtraContext({foo: 'bar'});
78
Raven.setExtraContext();
packages/raven-js/typescript/raven.d.ts
@@ -226,7 +226,7 @@ declare namespace Raven {
226
* @return {Raven}
227
*/
228
setUserContext(user?: {
229
- [key: string]: string | number | boolean | null | void;
+ [key: string]: any;
230
}): RavenStatic;
231
232
/*
0 commit comments