]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor: unknwonr instead of any
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 29 Oct 2025 13:35:39 +0000 (14:35 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 29 Oct 2025 13:35:39 +0000 (14:35 +0100)
packages/router/src/utils/index.ts

index b9cf4f72d403e4fb2ee1319e3d5a686515559c08..2bcf485ea820248dc432e2076ec4e7dfc15fb913 100644 (file)
@@ -64,9 +64,12 @@ export const noop = () => {}
 /**
  * Typesafe alternative to Array.isArray
  * https://github.com/microsoft/TypeScript/pull/48228
+ *
+ * @internal
  */
-export const isArray: (arg: ArrayLike<any> | any) => arg is ReadonlyArray<any> =
-  Array.isArray
+export const isArray: (
+  arg: ArrayLike<any> | unknown
+) => arg is ReadonlyArray<any> = Array.isArray
 
 export function mergeOptions<T extends object>(
   defaults: T,