diff --git a/packages/support/src/misc/isKey.ts b/packages/support/src/misc/isKey.ts index b8f36690..2f08a405 100644 --- a/packages/support/src/misc/isKey.ts +++ b/packages/support/src/misc/isKey.ts @@ -9,7 +9,9 @@ import { isPropertyKey } from "./isPropertyKey"; * * @returns {boolean} */ -export function isKey(key: any): boolean +export function isKey( + key: any /* eslint-disable-line @typescript-eslint/no-explicit-any */ +): boolean { if (!Array.isArray(key)) { key = [ key ]; diff --git a/packages/support/src/misc/isPropertyKey.ts b/packages/support/src/misc/isPropertyKey.ts index 6d2bab11..d388474c 100644 --- a/packages/support/src/misc/isPropertyKey.ts +++ b/packages/support/src/misc/isPropertyKey.ts @@ -7,7 +7,9 @@ * * @returns {boolean} True if typeof key is a string, number or symbol */ -export function isPropertyKey(key: any): boolean +export function isPropertyKey( + key: any /* eslint-disable-line @typescript-eslint/no-explicit-any */ +): boolean { return [ 'string', 'number', 'symbol' ].includes(typeof key); } \ No newline at end of file