]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
feat: stricter types for children
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 14 Aug 2025 14:02:18 +0000 (16:02 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 14 Aug 2025 14:02:18 +0000 (16:02 +0200)
packages/router/src/experimental/index.ts

index c52c62b89f0f3ebd9d5892a2fdeb37f55eca06fe..ed84877224af6425fe8ee44a69457c8ea5d91b0c 100644 (file)
@@ -36,12 +36,13 @@ export type {
   ParamParser,
 } from './route-resolver/matchers/matcher-pattern'
 
-import type { RouteRecordNormalized } from '../matcher/types'
-
 // in the new experimental router, there are only parents
 // this should create type errors if someone is realying on children
 declare module 'vue-router' {
   export interface RouteLocationMatched {
-    children?: RouteRecordNormalized['children']
+    /**
+     * The experimental router uses a `parent` property instead of `children`.
+     */
+    children?: never
   }
 }