-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fixed username to name in RavenUserContext (in .d.ts) #820
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
In the d.ts for raven.js the interface `RavenUserContext ` has the member `username. If you look at the corresponding [js-file](https://github.com/getsentry/raven-js/blob/master/src/raven.js#L658) you see that the meber should really be called `name.`
The line you're pointing to is for Basically, |
You are right, wired that I somehow didn't catch that While we are at it: I also just noticed that |
@LucaVazz - Aside: I definitely accepted that PR way too early. |
I think L31-33 shows the correct way to declare the extra Key/Value-Interface. Although I don't understand, why @connor4312 did not declare it the same way a few lines down for |
And yet another minor thing I noticed while reading through: Not related to raven.d.ts: It is correct with respect to the actual js-source, that the global options except a member named |
The |
@benvinegar Can you clarify this, I'm also not sure if |
|
okay, then
|
It might make sense to have it take |
Yeah, that should do it. As you said, it should be typed as strict as possible. |
Any chance of an update to this PR (or a new one)? I'm not a TypeScript developer, so I'm concerned I'd get this wrong. |
I have an update nearly finished. Would you rather have it appended to this PR or as a new one? |
Yeah maybe a new one so we can keep the history here with the original context / original PR. |
In the d.ts for raven.js the interface
RavenUserContext
has the member `username.If you look at the corresponding js-file you see that the meber should really be called
name.