From 3cdf0a28ef6b7a2e1da6c38f1534c28bce2ae4a7 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Wed, 21 May 2025 22:53:44 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20type=20challenges=20gived=20up=20=CB=8A?= =?UTF-8?q?=5F>=CB=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 6 ++++-- tsconfig.json | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index e1c7693..f1b6e1d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,8 +12,10 @@ interface ComponentOptions { newValue: string, ) => void states?: Record - statesListeners?: { [key: string]: (value: unknown) => void } - funcs?: { [key: string]: (...args: unknown[]) => void } + // biome-ignore lint/suspicious/noExplicitAny: no assuming the types of arguments + statesListeners?: { [key: string]: (value: any) => void } + // biome-ignore lint/suspicious/noExplicitAny: no assuming the types of arguments + funcs?: { [key: string]: (...args: any[]) => void } } interface CustomElement extends HTMLElement { diff --git a/tsconfig.json b/tsconfig.json index 37a0107..9c403a6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -35,7 +35,9 @@ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ - "typeRoots": ["./src/types"], /* Specify multiple folders that act like './node_modules/@types'. */ + "typeRoots": [ + "./src/types" + ] /* Specify multiple folders that act like './node_modules/@types'. */, // "types": [], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */