Skip to content

API DocumentationDocs


API Documentation / RouteLocationAsRelative

Type Alias: RouteLocationAsRelative<Name>

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 extends keyof RouteMap = keyof RouteMap

Released under the MIT License.