Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register Notification and AnimatedTools with Glint #649

Merged
merged 1 commit into from
Mar 13, 2024
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
6 changes: 6 additions & 0 deletions web/app/components/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ import HermesFlashMessagesService from "hermes/services/flash-messages";
export default class Notification extends Component {
@service declare flashMessages: HermesFlashMessagesService;
}

declare module "@glint/environment-ember-loose/registry" {
export default interface Registry {
Notification: typeof Notification;
}
}
1 change: 0 additions & 1 deletion web/app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{! @glint-nocheck: not typesafe yet }}
{{page-title "Hermes"}}
<div id="dialog-container" class="dialog-container"></div>

Expand Down
5 changes: 5 additions & 0 deletions web/types/ember-animated-tools/animated-tools.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module "ember-animated-tools/components/animated-tools" {
import Component from "@ember/component";

export default class AnimatedTools extends Component {}
}
2 changes: 2 additions & 0 deletions web/types/glint/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import AnimatedContainer from "ember-animated/components/animated-container";
import { AnimatedEachCurly } from "ember-animated/components/animated-each";
import AnimatedValue from "ember-animated/components/animated-value";
import AnimatedOrphans from "ember-animated/components/animated-orphans";
import AnimatedTools from "ember-animated-tools/components/animated-tools";
import { AnimatedIfCurly } from "ember-animated/components/animated-if";
import { FlashMessageComponent } from "ember-cli-flash/flash-message";
import { HdsFormErrorComponent } from "hds/form/error";
Expand All @@ -56,6 +57,7 @@ declare module "@glint/environment-ember-loose/registry" {
AnimatedContainer: typeof AnimatedContainer;
AnimatedValue: typeof AnimatedValue;
AnimatedOrphans: typeof AnimatedOrphans;
AnimatedTools: typeof AnimatedTools;
"animated-each": typeof AnimatedEachCurly;
"animated-if": typeof AnimatedIfCurly;
PowerSelectMultiple: typeof PowerSelectMultiple;
Expand Down
Loading