Skip to content

Commit 50583ff

Browse files
ForbesLindesaykamilogorek
authored andcommitted
ref: Make user type more flexible (#1187)
1 parent 6eda259 commit 50583ff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

typescript/raven.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,14 @@ declare module Raven {
206206
captureBreadcrumb(crumb: Breadcrumb): RavenStatic;
207207

208208
/*
209-
* Set a user to be sent along with the payload.
209+
* Set/Clear a user to be sent along with the payload.
210210
*
211211
* @param {object} user An object representing user data [optional]
212212
* If user is undefined, the current user context will be removed.
213213
* @return {Raven}
214214
*/
215215
setUserContext(user?: {
216-
id?: string;
217-
username?: string;
218-
email?: string;
216+
[key: string]: string | number | boolean | null | void
219217
}): RavenStatic;
220218

221219
/*

0 commit comments

Comments
 (0)