Skip to content

Commit

Permalink
Fix type issues with current types (Ember 3 types are not supported a…
Browse files Browse the repository at this point in the history
…nymore)
  • Loading branch information
NullVoxPopuli committed May 29, 2022
1 parent cbc5a5c commit 025ae62
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
4 changes: 3 additions & 1 deletion addon/components/dialog.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import Component from '@glimmer/component';
import { getOwner } from '@ember/application';
import { action } from '@ember/object';
Expand Down Expand Up @@ -73,7 +74,8 @@ export default class DialogComponent extends Component<Args> {

const {
APP: { rootElement },
} = getOwner(this).resolveRegistration('config:environment');
} = (getOwner(this) as any) /* typed-ember does not have types for Owner */
.resolveRegistration('config:environment');

this.$portalRoot = rootElement
? document.querySelector(rootElement)
Expand Down
19 changes: 9 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 025ae62

Please sign in to comment.