File tree Expand file tree Collapse file tree
files/unpublished-development-types
tests/fixtures/explicit-imports
my-addon/unpublished-development-types Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // Add any types here that you need for local development only.
2- // These will *not* be published as part of your addon, so be careful that your published code does not rely on them!
31
4- // Uncomment if you need to support consuming projects in loose mode
5- //
6- // declare module '@glint/environment-ember-loose/registry' {
7- // export default interface Registry {
8- // // Add any registry entries from other addons here that your addon itself uses (in non-strict mode templates)
9- // // See https://typed-ember.gitbook.io/glint/using-glint/ember/using-addons
10- // }
11- // }
Original file line number Diff line number Diff line change 1- // Add any types here that you need for local development only.
2- // These will *not* be published as part of your addon, so be careful that your published code does not rely on them!
3-
4- import { default as MyRegistry } from '../src/template-registry' ;
5-
6- declare module '@glint/environment-ember-loose/registry' {
7- // Remove this once entries have been added! 👇
8- // eslint-disable-next-line @typescript-eslint/no-empty-interface
9- export default interface Registry extends MyRegistry {
10- // Add any registry entries from other addons here that your addon itself uses (in non-strict mode templates)
11- // See https://typed-ember.gitbook.io/glint/using-glint/ember/using-addons
12- }
13- }
Original file line number Diff line number Diff line change 1- import { default as MyAddonRegistry } from 'my-addon/template-registry' ;
2-
3- declare module '@glint/environment-ember-loose/registry' {
4- // eslint-disable-next-line @typescript-eslint/no-empty-object-type
5- export default interface Registry extends MyAddonRegistry { }
6- }
You can’t perform that action at this time.
0 commit comments