From ec4aa7a7bff06116f794b4ed97d8bfd0acc640db Mon Sep 17 00:00:00 2001 From: Markus Sanin Date: Sat, 31 Jan 2026 07:19:00 +0100 Subject: [PATCH 1/2] Remove last any types --- src/components/basic-dropdown-content.gts | 3 +-- src/types.ts | 3 +-- src/utils/has-moved.ts | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/basic-dropdown-content.gts b/src/components/basic-dropdown-content.gts index 2729bae1..aa4269cc 100644 --- a/src/components/basic-dropdown-content.gts +++ b/src/components/basic-dropdown-content.gts @@ -175,8 +175,7 @@ export default class BasicDropdownContent< if (!triggerElement) { triggerElement = document.querySelector(selector) as HTMLElement; } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - this.handleRootMouseDown = (e: MouseEvent | TouchEvent): any => { + this.handleRootMouseDown = (e: MouseEvent | TouchEvent) => { const target = (e.composedPath?.()[0] || e.target) as Element; if (target === null) return; if ( diff --git a/src/types.ts b/src/types.ts index dc2761f9..9615fdad 100644 --- a/src/types.ts +++ b/src/types.ts @@ -2,8 +2,7 @@ export interface DropdownActions { toggle: (e?: Event) => void; close: (e?: Event, skipFocus?: boolean) => void; open: (e?: Event) => void; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - reposition: (...args: any[]) => undefined | RepositionChanges; + reposition: () => undefined | RepositionChanges; registerTriggerElement: (e: HTMLElement) => void; registerDropdownElement: (e: HTMLElement) => void; getTriggerElement: () => HTMLElement | null; diff --git a/src/utils/has-moved.ts b/src/utils/has-moved.ts index 0b63f237..a11ea62d 100644 --- a/src/utils/has-moved.ts +++ b/src/utils/has-moved.ts @@ -8,8 +8,7 @@ export default function hasMoved( if ( !endEvent.changedTouches?.[0] || - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access - (moveEvent.changedTouches[0] as any).touchType !== 'stylus' + (moveEvent.changedTouches[0] as unknown as { touchType: string }).touchType !== 'stylus' ) { return true; } From b4d1725ce5f3c66a98179657f6b36d20840e93aa Mon Sep 17 00:00:00 2001 From: Markus Sanin Date: Sat, 31 Jan 2026 07:19:48 +0100 Subject: [PATCH 2/2] Fix lint --- src/utils/has-moved.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/has-moved.ts b/src/utils/has-moved.ts index a11ea62d..b54fe3e1 100644 --- a/src/utils/has-moved.ts +++ b/src/utils/has-moved.ts @@ -8,7 +8,8 @@ export default function hasMoved( if ( !endEvent.changedTouches?.[0] || - (moveEvent.changedTouches[0] as unknown as { touchType: string }).touchType !== 'stylus' + (moveEvent.changedTouches[0] as unknown as { touchType: string }) + .touchType !== 'stylus' ) { return true; }