Skip to content

vue-router / RouteLocationAsString

RouteLocationAsString<Name>

ts
type RouteLocationAsString<Name> = RouteMapGeneric extends RouteMap ? string : _LiteralUnion<RouteLocationAsStringTypedList<RouteMap>[Name], string>;

Same as RouteLocationAsPath but as a string literal.

Type Parameters

Name

Name extends keyof RouteMap = keyof RouteMap

Released under the MIT License.