Skip to content

Commit 833a3e7

Browse files
committed
feat: stricter types for children
1 parent 0b0a9b1 commit 833a3e7

File tree

1 file changed

+4
-3
lines changed
  • packages/router/src/experimental

1 file changed

+4
-3
lines changed

packages/router/src/experimental/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ export type {
3636
ParamParser,
3737
} from './route-resolver/matchers/matcher-pattern'
3838

39-
import type { RouteRecordNormalized } from '../matcher/types'
40-
4139
// in the new experimental router, there are only parents
4240
// this should create type errors if someone is realying on children
4341
declare module 'vue-router' {
4442
export interface RouteLocationMatched {
45-
children?: RouteRecordNormalized['children']
43+
/**
44+
* The experimental router uses a `parent` property instead of `children`.
45+
*/
46+
children?: never
4647
}
4748
}

0 commit comments

Comments
 (0)