-
Notifications
You must be signed in to change notification settings - Fork 33
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
Addendum to #11... adding TS test #12
Conversation
The problem I'm seeing has to do with how TS vs JS treat the import. I think it's the old .default issue 😐 |
yup |
this will enable projects consuming symbol-observable from TS (eg, RxJS) to use ```typescript import $$observable from 'symbol-observable' ``` rather than ```typescript import * as $$observable from 'symbol-observable' ``` This might? require downstream changes on RxJS but its more correct methinks.
Okay, so digging into this, it's not possible do support both types of exports. I can't assign a So we're stuck with exporting a named variable, or just exporting Yay modules. |
cc/ @gaearon .... what do you think? |
So I need to fix this for RxJS and Angular, for sure... @gaearon, you're the only other "big customer", do you have a preference on how to solve this problem? (also would you like commit rights on this repo?) |
The proposed solutions are:
|
I think |
Agreed, lets optimize for the future |
Closing in favor of #15 |
Attn @robwormald... this is an extension on your PR #11, including your commits. Just adding a test to see if everything is kosher.