Skip to content

API DocumentationDocs


API Documentation / RouteLocationAsStringTyped

Type Alias: RouteLocationAsStringTyped<RouteMap, Name>

RouteLocationAsStringTyped<RouteMap, Name>: RouteMap[Name]["path"]

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

Type Parameters

RouteMap extends RouteMapGeneric = RouteMapGeneric

Name extends keyof RouteMap = keyof RouteMap

Released under the MIT License.