Skip to content

Commit

Permalink
fix: Update invalid type imports (cibernox#1589)
Browse files Browse the repository at this point in the history
Copied from cibernox#1577

For consumers that end up importing this file, the type declarations
don't include `/addon`

`/addon` ends up working during development time, because the original
source is in TS -- but it ends up not being the same as the emitted
declarations.
  • Loading branch information
HeroicEric authored Jul 25, 2023
1 parent ec05776 commit 52e9e07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/components/power-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from '../utils/group-utils';
// @ts-ignore
import { restartableTask, timeout } from 'ember-concurrency';
import { Dropdown, DropdownActions } from 'ember-basic-dropdown/addon/components/basic-dropdown';
import type { Dropdown, DropdownActions } from 'ember-basic-dropdown/components/basic-dropdown';

interface SelectActions extends DropdownActions {
search: (term: string) => void
Expand Down
2 changes: 1 addition & 1 deletion components/power-select.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from '@glimmer/component';
import { MatcherFn } from '../utils/group-utils';
import { Dropdown, DropdownActions } from 'ember-basic-dropdown/addon/components/basic-dropdown';
import type { Dropdown, DropdownActions } from 'ember-basic-dropdown/components/basic-dropdown';
interface SelectActions extends DropdownActions {
search: (term: string) => void;
highlight: (option: any) => void;
Expand Down

0 comments on commit 52e9e07

Please sign in to comment.