Fix some any types

This commit is contained in:
Isaac Wise
2024-07-25 18:58:52 -05:00
parent e79b98d3b0
commit 0b8a9b4310
16 changed files with 49 additions and 55 deletions
+2 -2
View File
@@ -7,10 +7,10 @@ export function isPWA() {
}
export function isIphone() {
return /iPhone/.test(navigator.userAgent) && !(window as any).MSStream;
return /iPhone/.test(navigator.userAgent) && !(window as unknown as { MSStream?: any }).MSStream;
}
export function dropdownTriggerer(e: any) {
export function dropdownTriggerer(e: React.FocusEvent<HTMLElement> | React.MouseEvent<HTMLElement>) {
let targetEl = e.currentTarget;
if (targetEl && targetEl.matches(":focus")) {
setTimeout(function () {