Skip to content

Commit 1f32602

Browse files
committed
refactor: unknwonr instead of any
1 parent 090092d commit 1f32602

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/router/src/utils/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,12 @@ export const noop = () => {}
6464
/**
6565
* Typesafe alternative to Array.isArray
6666
* https://github.com/microsoft/TypeScript/pull/48228
67+
*
68+
* @internal
6769
*/
68-
export const isArray: (arg: ArrayLike<any> | any) => arg is ReadonlyArray<any> =
69-
Array.isArray
70+
export const isArray: (
71+
arg: ArrayLike<any> | unknown
72+
) => arg is ReadonlyArray<any> = Array.isArray
7073

7174
export function mergeOptions<T extends object>(
7275
defaults: T,

0 commit comments

Comments
 (0)