Type Alias: RoutePathExpression
RoutePathExpression:
object
Defined in: packages/core/src/router/DynamicRoute.ts:23
Path expression type used for router routes definition.
Type declaration
extractParameters()
extractParameters: (
trimmedPath
,additionalData
) =>RouteParams
Function which takes care of parsing url params from given path. It returns object of key/value pairs which correspond to expected path url params and their values.
Parameters
trimmedPath
string
additionalData
path
string
query
Returns
matcher
matcher:
RegExp
RegExp use in router for path matching to current route.
toPath()
toPath: (
params
) =>string
Function that generates valid path from given route params.
Parameters
params
Returns
string