-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
types are exported as a module #977
Conversation
(the indentation makes the diff difficult to read but nothing was changed :) ) |
Hi @polco - as you may have noticed it's been hard for us to review type annotation improvements because we don't internally use this ecosystem and there seem to be many permutations on the ways people import modules and build their bundles. I appreciate this patch and want to help get it merged but definitely need to try it out on my own first and get some feedback from people using the types already - so bear with me. |
hello @MaxBittker i understand the hassle no problem. The patch doesn't change anything about the way raven-js was being used by typescript in the past versions and add nothing more than the access to the internal interfaces. |
Hi polco - just wanted to say that I haven't forgotten about this but have been busy. 😬 |
Haha thank you ;) |
Hi, I'm the author of #736 from last year. Our company uses typescript extensively. We have a project that is currently stuck on You can see a simplified diff here that highlights what the real changes are. The approach taken by this PR is the same approach I've seen taken for other libraries that support being used both via a global and a module, such as sinon and lodash. ( As far as I'm aware, exposing the types in this manner has no negative effects, and will not cause any changes for existing users of the library. Is there anything I can do to help get this merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MaxBittker @LucaVazz
This library uses method one and so the declared export is already correct. The rest of the PR doesn't look offensive to me, but I don't know enough about Sentry to say whether it's all correct. Ideally all the new definitions should have tests to go along with them. |
Fixes #898. It doesn't change the current behavior but allow to access the internal type as you can see in the updated test file.
I tested with the typescript 1.8.10 referenced in the package.json and the latest one 2.3.4.
It kinda duplicates #736, but there was no movement for months now...