]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
fix(types): allow redirect with children
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 19 Jul 2022 13:19:36 +0000 (15:19 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 19 Jul 2022 13:19:36 +0000 (15:19 +0200)
Fix #1476

packages/router/__tests__/matcher/resolve.spec.ts
packages/router/src/types/index.ts

index 2f9c01e0bda65b24b29427fdf384950e8bd6cc9f..8e9171c15e9e75084fb975ef0959f6218611ac50 100644 (file)
@@ -58,7 +58,6 @@ describe('RouterMatcher.resolve', () => {
     const startCopy: MatcherLocation = {
       ...start,
       matched: start.matched.map(m => ({
-        // @ts-expect-error: okay...
         ...normalizeRouteRecord(m),
         aliasOf: m.aliasOf,
       })) as MatcherLocation['matched'],
index e24868bd80978be2650fb3307cd13134afff4c55..b92bb3389bd9368b67f0c2f1407ea9fca231ebc2 100644 (file)
@@ -364,7 +364,6 @@ export interface RouteRecordMultipleViewsWithChildren extends _RouteRecordBase {
    */
   components?: Record<string, RawRouteComponent> | null | undefined
   component?: never
-  redirect?: never
 
   children: RouteRecordRaw[]