From 3e73a534aa1721940507353b6fde8337f03c29f4 Mon Sep 17 00:00:00 2001 From: Sam Van Campenhout Date: Tue, 16 Jan 2024 13:43:25 +0100 Subject: [PATCH] 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 --- addon/template-registry.ts | 1 + types/global.d.ts | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 addon/template-registry.ts diff --git a/addon/template-registry.ts b/addon/template-registry.ts new file mode 100644 index 000000000..83c660a45 --- /dev/null +++ b/addon/template-registry.ts @@ -0,0 +1 @@ +export default interface AppuniversumRegistry {} diff --git a/types/global.d.ts b/types/global.d.ts index 2c531e29a..1cb371fbf 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -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 + } +}