Skip to content

vue-router / RouteLocationAsRelative

RouteLocationAsRelative<Name>

ts
type RouteLocationAsRelative<Name> = RouteMapGeneric extends RouteMap ? RouteLocationAsRelativeGeneric : RouteLocationAsRelativeTypedList<RouteMap>[Name];

Route location relative to the current location. It accepts other properties than path like params, query and hash to conveniently change them.

Type Parameters

Name

Name extends keyof RouteMap = keyof RouteMap

Released under the MIT License.