Skip to content
Перевод синхронизирован с документацией от , хэш коммита 0d8d997.

API Documentation / RouteLocationResolvedTyped

Interface: RouteLocationResolvedTyped<RouteMap, Name> ​

Helper to generate a type safe version of the RouteLocationResolved type.

Type parameters ​

NameType
RouteMapextends RouteMapGeneric
Nameextends keyof RouteMap

Hierarchy ​

Properties ​

fullPath ​

• fullPath: string

The whole location including the search and hash. This string is percentage encoded.

Inherited from ​

RouteLocationTyped.fullPath


hash ​

• hash: string

Hash of the current location. If present, starts with a #.

Inherited from ​

RouteLocationTyped.hash


href ​

• href: string

Resolved href for the route location that will be set on the <a href="...">.


matched ​

• matched: RouteRecordNormalized[]

Array of RouteRecord containing components as they were passed when adding records. It can also contain redirect records. This can't be used directly. This property is non-enumerable.

Inherited from ​

RouteLocationTyped.matched


meta ​

• meta: RouteMeta

Merged meta properties from all the matched route records.

Inherited from ​

RouteLocationTyped.meta


name ​

• name: Extract<Name, string | symbol>

Name of the matched record

Inherited from ​

RouteLocationTyped.name


params ​

• params: RouteMap[Name]["params"]

Object of decoded params extracted from the path.

Inherited from ​

RouteLocationTyped.params


path ​

• path: string

Percentage encoded pathname section of the URL.

Inherited from ​

RouteLocationTyped.path


query ​

• query: LocationQuery

Object representation of the search property of the current location.

Inherited from ​

RouteLocationTyped.query


redirectedFrom ​

• redirectedFrom: undefined | RouteLocationGeneric

Contains the location we were initially trying to access before ending up on the current location.

Inherited from ​

RouteLocationTyped.redirectedFrom

Released under the MIT License.