Skip to content

Commit

Permalink
Fix typing for dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Feb 16, 2025
1 parent b6dbd71 commit 2adcfac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ember-basic-dropdown/src/utils/calculate-position.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type BasicDropdown from '../components/basic-dropdown';

export type VerticalPosition = 'auto' | 'above' | 'below';
export type HorizontalPosition =
| 'auto'
Expand All @@ -14,8 +16,7 @@ export interface CalculatePositionOptions {
previousHorizontalPosition?: HorizontalPosition | undefined;
previousVerticalPosition?: VerticalPosition | undefined;
renderInPlace: boolean;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
dropdown: any;
dropdown: BasicDropdown;
}
export type CalculatePositionResultStyle = {
top?: number | undefined;
Expand Down

0 comments on commit 2adcfac

Please sign in to comment.