-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix triple-slash reference in complied output, breaking TS consumers #704
Fix triple-slash reference in complied output, breaking TS consumers #704
Conversation
@NullVoxPopuli thank you for doing this here! Had the exact same thought. @NullVoxPopuli one concern though about support: |
just added! thanks! |
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.
If you do as suggested here and explicitly name the type, I believe you can drop the other changes here, which would be preferable for now. Switching to the plain function as helper can come in a later PR that way, and avoid introducing any other changes for this one TS fix. Do let me know if that doesn't work, though!
Co-authored-by: Chris Krycho <[email protected]>
9bd3c13
to
9f08746
Compare
as per #705 it does not seem viable. @chriskrycho updated this PR per the plan outlined in #705 (comment) please let us know if this looks good to proceed or if you have any concerns. Thank you for suggestions and ideas here and in the other PR! |
@chriskrycho per the plan outlined in #705 (comment), this is now ready to go if no concerns from your side and then we can publish |
Made a tool to help out in the future: https://github.com/NullVoxPopuli/fix-bad-declaration-output |
🎉 |
Related fixes:
Any import from
@ember/component
(or its subpaths), where@ember/component
types are exposed in the declarations, ends up inserting/// <reference>
entries at the top of the file.This made upgrading to v1.0.2 of ember-async-data impossible for folks using any ember-source version that has a different set of types than the
ember-source
version thatember-async-data
is developed with. (too new, no preview types, provided by stable. too old, no preview types, provided by@types/*
).Locally, to test, all you need to do is
and observe that there are no triple-slash directives.