Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"@embroider/vite": "^1.1.5",
"@eslint/js": "^9.17.0",
"@glimmer/component": "^2.0.0",<% if (typescript) { %>
"@glint/ember-tsc": "^1.0.0",
"@glint/template": "^1.6.0",
"@glint/ember-tsc": "^1.0.3",
"@glint/template": "^1.6.1",
"@glint/tsserver-plugin": "^2.0.0",<% } %>
"@rollup/plugin-babel": "^6.0.4",<% if (typescript) { %>
"@types/qunit": "^2.19.12",<% } %>
Expand Down
14 changes: 0 additions & 14 deletions files/unpublished-development-types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +0,0 @@
// Add any types here that you need for local development only.
// These will *not* be published as part of your addon, so be careful that your published code does not rely on them!

import '@glint/environment-ember-loose';
import '@glint/environment-ember-template-imports';

// Uncomment if you need to support consuming projects in loose mode
//
// declare module '@glint/environment-ember-loose/registry' {
// export default interface Registry {
// // Add any registry entries from other addons here that your addon itself uses (in non-strict mode templates)
// // See https://typed-ember.gitbook.io/glint/using-glint/ember/using-addons
// }
// }
Original file line number Diff line number Diff line change
@@ -1,15 +0,0 @@
// Add any types here that you need for local development only.
// These will *not* be published as part of your addon, so be careful that your published code does not rely on them!

import '@glint/environment-ember-loose';

import { default as MyRegistry } from '../src/template-registry';

declare module '@glint/environment-ember-loose/registry' {
// Remove this once entries have been added! 👇
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export default interface Registry extends MyRegistry {
// Add any registry entries from other addons here that your addon itself uses (in non-strict mode templates)
// See https://typed-ember.gitbook.io/glint/using-glint/ember/using-addons
}
}
9 changes: 0 additions & 9 deletions tests/fixtures/explicit-imports/test-app/types/registry.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
import '@glint/environment-ember-loose';
import '@glint/environment-ember-template-imports';

import { default as MyAddonRegistry } from 'my-addon/template-registry';

declare module '@glint/environment-ember-loose/registry' {
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export default interface Registry extends MyAddonRegistry {}
}
8 changes: 4 additions & 4 deletions tests/smoke-tests/--typescript.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ for (let packageManager of SUPPORTED_PACKAGE_MANAGERS) {
"declarations/index.d.ts.map",
"declarations/template-registry.d.ts",
"declarations/template-registry.d.ts.map",
"declarations/components/another-gts.gts.d.ts",
"declarations/components/another-gts.gts.d.ts.map",
"declarations/components/template-import.gts.d.ts",
"declarations/components/template-import.gts.d.ts.map",
"declarations/components/another-gts.d.ts",
"declarations/components/another-gts.d.ts.map",
"declarations/components/template-import.d.ts",
"declarations/components/template-import.d.ts.map",
"declarations/services/example.d.ts",
"declarations/services/example.d.ts.map",
]
Expand Down