Skip to content

Commit

Permalink
Fix explicit any lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Jan 28, 2024
1 parent ab5f71b commit c023496
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/support/src/misc/isKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down
4 changes: 3 additions & 1 deletion packages/support/src/misc/isPropertyKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit c023496

Please sign in to comment.