-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
TypeScript Support #14
Comments
Does .gts work? Doesn't seem so, says Also if I try the
This is in an addon. If I rename it, it works: import { hbs as tpl } from 'ember-template-imports'; |
This will likely need to be solved via Glint, both the LS and the CLI integration, which we can teach how to understand these files (and indeed: it already works with this basic format courtesy of glimmer-experimental). |
Closing per RFC 779, and v4 of ETI. Hbs isn't supported anymore. Thank you for reporting! |
Currently, we cannot use the hbs template literal with TypeScript files.
The problem is that TS removes unused imports, so all the components/helpers/modifiers that are imported for a given component gets removed, resulting in error due to not having these definitions.
As a workaround, we can fakely pass the scope variables. NOTE: They don't do anything rather than making TS keep the imports.
While this workaround works, this is not ideal, therefore we should have better support for typescript users.
The text was updated successfully, but these errors were encountered: