Skip to content

vue-router / RouteRecordName

RouteRecordName

ts
type RouteRecordName = RouteMapGeneric extends RouteMap ? RouteRecordNameGeneric : keyof RouteMap;

Possible values for a route record after normalization

NOTE: since RouteRecordName is a type, it evaluates too early and it's often the generic version RouteRecordNameGeneric. If you need a typed version of all of the names of routes, use `keyof RouteMap`

Released under the MIT License.