Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IParsedSegment

The IParsedSegment interface defines a single segment in a URL pattern that can be matched to one or more parts of an actual URL. Each segment can have zero or more fields defined in it.

Hierarchy

Index

Properties

fields

fields: IParsedField[]

Array of fields defined in this segment.

isMulti

isMulti: boolean

Flag indicating whether the segment can be repeated mutiple times. Segments that are both optional and multi can be repeated zero or more times. Segments that are not optional but multi can be repeated one or more times.

isOptional

isOptional: boolean

Flag indicating whether the segment is optional

location

location: ParsedLocation

Location of the part in the original pattern string containing the zero-based index where the part begins and its length.

regExp

regExp: RegExp

tokenSting

tokenSting: string

Content of the token

Generated using TypeDoc