Skip to content

Commit fe29fc6

Browse files
committed
feat: output RouteRecordInfo over multiple lines
1 parent 3146834 commit fe29fc6

File tree

5 files changed

+1046
-199
lines changed

5 files changed

+1046
-199
lines changed

docs/.vitepress/twoslash-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ declare module 'vue-router/auto-routes' {
3131
'/users/:id',
3232
{ id: ParamValue<true> },
3333
{ id: ParamValue<false> },
34-
'/users/[id]/edit'
34+
| '/users/[id]/edit'
3535
>
3636
'/users/[id]/edit': RouteRecordInfo<
3737
'/users/[id]/edit',

docs/guide/typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ declare module 'vue-router/auto-routes' {
6363
{ path: ParamValue<false> },
6464
// this is a union of all children route names
6565
// if the route does not have nested routes, pass `never` or omit this generic entirely
66-
'custom-dynamic-child-name'
66+
| 'custom-dynamic-child-name'
6767
>
6868
'custom-dynamic-child-name': RouteRecordInfo<
6969
'custom-dynamic-child-name',

0 commit comments

Comments
 (0)