Editar

Compartilhar via


IParsedRouteSegment interface

And individual segment of the route (fixed text or a parameter)

Properties

isRequiredParam

Whether the parameter is required in order for the URL to be valid.

isWildCardParam

For parameters, whether or not this parameter is a wildcard (*) parameter, which means it allows multiple path segments (i.e. don't escape "/")

paramName

If present, the name of the route value parameter to substitute for this segment. Either text or paramName will be defined for a segment, never both.

text

If present, the fixed text for this segement. Either text or paramName will be defined for a segment, never both.

Property Details

isRequiredParam

Whether the parameter is required in order for the URL to be valid.

isRequiredParam?: boolean

Property Value

boolean

isWildCardParam

For parameters, whether or not this parameter is a wildcard (*) parameter, which means it allows multiple path segments (i.e. don't escape "/")

isWildCardParam?: boolean

Property Value

boolean

paramName

If present, the name of the route value parameter to substitute for this segment. Either text or paramName will be defined for a segment, never both.

paramName?: string

Property Value

string

text

If present, the fixed text for this segement. Either text or paramName will be defined for a segment, never both.

text?: string

Property Value

string