chore: fix last type/linting errors

This commit is contained in:
Arman
2023-08-31 18:48:34 +02:00
parent bcc4f8013c
commit ae2d850697
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
export let noMargin = false;
let isOverflowing = false;
const hasOverflow: Action<HTMLDivElement, any> = (node) => {
const hasOverflow: Action<HTMLDivElement, unknown> = (node) => {
const observer = new ResizeObserver((entries) => {
for (const entry of entries) {
let overflowing = false;
+2
View File
@@ -26,6 +26,8 @@ export function deepClone<T>(obj: T): T {
export type DeepObj<T> = {
[K in keyof T]: T[K] extends object ? DeepObj<T[K]> : T[K];
};
/* eslint @typescript-eslint/no-explicit-any: 'off' */
export function deepMap<T, U>(
obj: DeepObj<T>,
fn: (value: T, key: string, parentKey?: string) => unknown,
@@ -87,6 +87,7 @@
}
// We cast to any to not cause type errors in the input components
/* eslint @typescript-eslint/no-explicit-any: 'off' */
let value: any = null;
$: {