From: Eduardo San Martin Morote Date: Fri, 6 May 2022 10:25:01 +0000 (+0200) Subject: chore: testing X-Git-Tag: v4.1.0~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85e3780294d94cb981db86ecd645ee6ff9317431;p=thirdparty%2Fvuejs%2Frouter.git chore: testing --- diff --git a/src/types/index.ts b/src/types/index.ts index fd7ef405..d0c48bf6 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -78,6 +78,16 @@ export interface LocationAsRelativeRaw< : RouteMap[Name]['paramsRaw'] } +// this one didn't work 🤔 +// export type _LocationAsRelativeRaw< +// RouteMap extends RouteNamedMapGeneric = RouteNamedMapGeneric +// > = { +// [N in keyof RouteMap]: { +// name?: N +// params?: RouteMap[N]['paramsRaw'] +// } +// }[keyof RouteMap] + export interface LocationAsRelative< RouteMap extends RouteNamedMapGeneric = RouteNamedMapGeneric, Name extends keyof RouteMap = keyof RouteMap