Skip to content

Commit

Permalink
Begin converting to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Dec 23, 2023
1 parent 4a29d60 commit acc63cd
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions addon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,23 @@ module('Acceptance | Register Page', function (hooks) {
});
```

### TypeScript and Glint

If your project uses loose-mode templates, you can merge in the template registry interface provided by ember-page-title,
```ts
// <your-app>/types/glint.d.ts
import '@glint/environment-ember-loose';
import '@glint/environment-ember-template-imports';

import type PageTitle from 'ember-page-title/template-registry';

declare module '@glint/environment-ember-loose/registry' {
export default interface Registry extends PageTitle {
/* your local loose-mode entries here */
}
}
```

### Upgrading notes for 5.x to 6.x

- `ember-page-title` no longer requires the usage of `ember-cli-head`.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions addon/src/template-registry.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { pageTitle } from './helpers/page-title';

export default interface Registry {
'page-title': HelperLike<PageTitleHelperSignature>;
}
File renamed without changes.
File renamed without changes.

0 comments on commit acc63cd

Please sign in to comment.