fix: type challenges gived up ˊ_>ˋ
All checks were successful
Quality Check & Publish / quality (push) Successful in 26s
Quality Check & Publish / quality-failed-webhook (push) Has been skipped
Quality Check & Publish / publish (push) Successful in 27s
Quality Check & Publish / publish-failed-webhook (push) Has been skipped

This commit is contained in:
Astrian Zheng 2025-05-21 22:53:44 +10:00
parent 5f3b4395ab
commit 3cdf0a28ef
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA
2 changed files with 7 additions and 3 deletions

View File

@ -12,8 +12,10 @@ interface ComponentOptions {
newValue: string,
) => void
states?: Record<string, unknown>
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 {

View File

@ -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. */