Documentation
    Preparing search index...
    • Parse a route pattern into an array of tokens. These tokes can be used to match routes, or print them with semantic information.

      Token types

      • 0: (static) segment
      • 1: (parameter) segment
      • 2: (wildcard) segment
      • 3: (optional parameter) segment

      Value (val) refers to the segment value

      end refers to be the suffix or the segment (if any)

      Parameters

      • pattern: string

        The route pattern to parse

      • Optionalmatchers: RouteMatchers

        Optional route matchers

      Returns MatchItRouteToken[]

      Array of parsed route tokens