Interface Context<TRoute>

Route match context.

This is passed to route matcher to indicate the position inside the route the match should be searched at.

Type Parameters

  • TRoute extends PathRoute

    A type of tested route.

Hierarchy

Properties

entry: TRoute["path"][0]

The first entry the matcher should match against.

entryIndex: number

The index of the first entry within the route path the matcher should match against.

Always less than path length.

matcherIndex: number

The index of the matcher in the route pattern.

nameOffset: number

An offset of the first character within first entry name the matcher should match against.

pattern: RoutePattern<TRoute>

The route pattern the matcher belongs to.

route: TRoute

Target route.

Generated using TypeDoc