From: Eduardo San Martin Morote Date: Sun, 19 Oct 2025 05:07:26 +0000 (+0200) Subject: refactor(experimental): parent property in records X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f420992ec453a09b22449617be9e30307d52acdf;p=thirdparty%2Fvuejs%2Frouter.git refactor(experimental): parent property in records --- diff --git a/packages/router/src/experimental/router.ts b/packages/router/src/experimental/router.ts index 8db08ce6..c2c249e2 100644 --- a/packages/router/src/experimental/router.ts +++ b/packages/router/src/experimental/router.ts @@ -222,7 +222,7 @@ export interface EXPERIMENTAL_RouteRecord_Base /** * Parent of this component if any */ - parent?: EXPERIMENTAL_RouteRecordRaw + parent?: EXPERIMENTAL_RouteRecordNormalized | null // TODO: /** @@ -233,36 +233,36 @@ export interface EXPERIMENTAL_RouteRecord_Base export interface EXPERIMENTAL_RouteRecord_Redirect // preserve the values from the type EXPERIMENTAL_ResolverRecord_Matchable - extends Omit, + extends Omit, EXPERIMENTAL_ResolverRecord_Matchable { components?: Record redirect: RouteRecordRedirectOption // must be defined - parent?: EXPERIMENTAL_RouteRecordNormalized | null + parent?: EXPERIMENTAL_RouteRecordNormalized | null // must be redifined because of ResolverRecord_Matchable } export interface EXPERIMENTAL_RouteRecord_Group extends Omit< EXPERIMENTAL_RouteRecord_Base, // preserve the values from the type EXPERIMENTAL_ResolverRecord_Group - 'name' | 'path' | 'query' | 'hash' | 'parent' + 'name' | 'path' | 'query' | 'hash' >, EXPERIMENTAL_ResolverRecord_Group { components?: Record - parent?: EXPERIMENTAL_RouteRecordNormalized | null + parent?: EXPERIMENTAL_RouteRecordNormalized | null // must be redifined because of ResolverRecord_Matchable } export interface EXPERIMENTAL_RouteRecord_Components // preserve the values from the type EXPERIMENTAL_ResolverRecord_Matchable - extends Omit, + extends Omit, EXPERIMENTAL_ResolverRecord_Matchable { components: Record redirect?: never - parent?: EXPERIMENTAL_RouteRecordNormalized | null + parent?: EXPERIMENTAL_RouteRecordNormalized | null // must be redifined because of ResolverRecord_Matchable } export type EXPERIMENTAL_RouteRecord_Matchable =