-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration.transform incorrectly typed #985
Comments
The payload structure is documented here: https://explorer.docs.rollbar.com/#tag/Item When you say incorrectly typed, are you referring to the Typescript declaration? |
@waltjones Thank you for the link, that does clarify a bit how the payload structure is expected to look 👍
Yes exactly, that's why I linked to the
I can work around it by typing the transform function myself like |
Fix is released in v2.26.1. Thank you for the report. |
Awesome! No problem at all, I'm looking forward to upgrading 👍 |
Reading up on how to use source maps when you serve your code on multiple domains I seem to have run into an issue where the transform function of the configuration object is not properly typed.
The code sample from the source map documentation (as of writing) looks like this:
According to that code sample it would sure seem that the first parameter of the
transform
function would not just be anobject
but looks more like:There is probably a plethora of other fields in the payload parameter (and it's underlying fields) that I don't know about yet.
Am I overlooking something or is there a disconnect between the typing of
transform
in this repo and the documentation example?*Edit* I should probably mention that I am using rollbar version 2.24.0
The text was updated successfully, but these errors were encountered: