File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,7 @@ export default class BasicDropdownContent<
175175 if (! triggerElement ) {
176176 triggerElement = document .querySelector (selector ) as HTMLElement ;
177177 }
178- // eslint-disable-next-line @typescript-eslint/no-explicit-any
179- this .handleRootMouseDown = (e : MouseEvent | TouchEvent ): any => {
178+ this .handleRootMouseDown = (e : MouseEvent | TouchEvent ) => {
180179 const target = (e .composedPath ?.()[0 ] || e .target ) as Element ;
181180 if (target === null ) return ;
182181 if (
Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ export interface DropdownActions {
22 toggle : ( e ?: Event ) => void ;
33 close : ( e ?: Event , skipFocus ?: boolean ) => void ;
44 open : ( e ?: Event ) => void ;
5- // eslint-disable-next-line @typescript-eslint/no-explicit-any
6- reposition : ( ...args : any [ ] ) => undefined | RepositionChanges ;
5+ reposition : ( ) => undefined | RepositionChanges ;
76 registerTriggerElement : ( e : HTMLElement ) => void ;
87 registerDropdownElement : ( e : HTMLElement ) => void ;
98 getTriggerElement : ( ) => HTMLElement | null ;
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ export default function hasMoved(
88
99 if (
1010 ! endEvent . changedTouches ?. [ 0 ] ||
11- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
12- ( moveEvent . changedTouches [ 0 ] as any ) . touchType !== 'stylus'
11+ ( moveEvent . changedTouches [ 0 ] as unknown as { touchType : string } )
12+ . touchType !== 'stylus'
1313 ) {
1414 return true ;
1515 }
You can’t perform that action at this time.
0 commit comments