-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Feature Request]: Return Typed sentryTransport
function
#142
Comments
Stale issue message |
Stale issue message |
Stale issue message |
Stale issue message |
Stale issue message |
Stale issue message |
Stale issue message |
Stale issue message |
Stale issue message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Typed
sentryTransport
functionAfter the code base move to TypeScript, we got rid of the manual
*.d.ts
files which caused issues with the implicit returned type ofsentryTransport
function.The main cause that we cannot use the straitforward retuned type is because we want to support multiple Sentry versions, and that results in multiple conflicted interfaces (some of them are breaking changes).
We need to come up with something we have done on our manual definition file back then:
But the above is also not straitforward for the TS compiler to digest (for some reason).
For me personally, I'm a TypeScript newbe so I'm looking for the right solution here... any kind of help is welcomed!
The text was updated successfully, but these errors were encountered: