Skip to content

Commit

Permalink
Set up the base template registry
Browse files Browse the repository at this point in the history
This will be used to map components to their loose mode equivalent so Glint can typecheck loose mode templates.

https://typed-ember.gitbook.io/glint/environments/ember/using-addons#using-glint-enabled-addons
  • Loading branch information
Windvis committed Feb 1, 2024
1 parent 5f7c9af commit 3e73a53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions addon/template-registry.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default interface AppuniversumRegistry {}
9 changes: 9 additions & 0 deletions types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
import '@glint/environment-ember-loose';

import type AppuniversumRegistry from '@appuniversum/ember-appuniversum/template-registry';

declare module '@glint/environment-ember-loose/registry' {
export default interface Registry
extends AppuniversumRegistry /* other addon registries */ {
// local entries
}
}

0 comments on commit 3e73a53

Please sign in to comment.