From ced381af0cde20fb4c99c6c284f4e12b9fb890b7 Mon Sep 17 00:00:00 2001 From: Marine Dunstetter Date: Wed, 26 Jun 2024 11:28:13 +0200 Subject: [PATCH] feat (new app-boot): fix the typescript errors --- tests/ts-app-template/app/app.ts | 2 -- tests/ts-app-template/types/global.d.ts | 6 ++++++ tests/ts-app-template/types/ts-app-template/entry.d.ts | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 tests/ts-app-template/types/ts-app-template/entry.d.ts diff --git a/tests/ts-app-template/app/app.ts b/tests/ts-app-template/app/app.ts index df50bd33b..dc71d8aac 100644 --- a/tests/ts-app-template/app/app.ts +++ b/tests/ts-app-template/app/app.ts @@ -1,11 +1,9 @@ import Application from '@ember/application'; -// @ts-ignore import compatModules from '@embroider/core/entrypoint'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; import config from 'ts-app-template/config/environment'; -// @ts-ignore let d = window.define; for (const [name, module] of Object.entries(compatModules)) { diff --git a/tests/ts-app-template/types/global.d.ts b/tests/ts-app-template/types/global.d.ts index 2c531e29a..84a68b049 100644 --- a/tests/ts-app-template/types/global.d.ts +++ b/tests/ts-app-template/types/global.d.ts @@ -1 +1,7 @@ import '@glint/environment-ember-loose'; + +declare global { + interface Window { + define: any; + } +} diff --git a/tests/ts-app-template/types/ts-app-template/entry.d.ts b/tests/ts-app-template/types/ts-app-template/entry.d.ts new file mode 100644 index 000000000..0aa0610dd --- /dev/null +++ b/tests/ts-app-template/types/ts-app-template/entry.d.ts @@ -0,0 +1 @@ +declare module '@embroider/core/entrypoint';