Import template registry from ember-template-imports
-enabled addon
#584
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ember.js 4.6.0
Ember CLI 4.12.0
I have an Ember app and an Ember v1 addon. Both packages use Glint and
ember-template-imports
.gts
files for components. The addon provides atemplate-registry.ts
file that the host app extends intypes/global.d.ts
per the Glint docs.My question: should
addon/template-registry.ts
be converted to.gts
while using template imports/strict mode?If I leave it as
.ts
I am unable to import the addon's.gts
components and helpers without seeing TypeScript missing import errors. If I convert it to.gts
, everything works fine until I extend that registry in the host app, which yields that same error.I imagine I cannot just forgo importing the registry altogether because I still need those signatures for components used in
.hbs
files (in route templates for example)Beta Was this translation helpful? Give feedback.
All reactions