Skip to content

Commit 3e73a53

Browse files
committed
Set up the base template registry
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
1 parent 5f7c9af commit 3e73a53

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

addon/template-registry.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default interface AppuniversumRegistry {}

types/global.d.ts

+9
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
import '@glint/environment-ember-loose';
2+
3+
import type AppuniversumRegistry from '@appuniversum/ember-appuniversum/template-registry';
4+
5+
declare module '@glint/environment-ember-loose/registry' {
6+
export default interface Registry
7+
extends AppuniversumRegistry /* other addon registries */ {
8+
// local entries
9+
}
10+
}

0 commit comments

Comments
 (0)