Class RelativePathInteractionRoute<TBase>

A route that is relative to another route. The relative path will be joined to the input base, which can either be an absolute URL or an InteractionRoute of which the path will be used.

Type Parameters

  • TBase extends string

Hierarchy

  • RelativePathInteractionRoute

Implements

Constructors

Properties

Methods

Constructors

Properties

base: InteractionRoute<TBase>
relativePath: string

Methods

  • Checks if the provided path matches the route (pattern).

    The result will be undefined if there is no match.

    If there is a match the result object will have the corresponding values for all the parameters.

    Parameters

    • path: string

      The path to verify.

    Returns undefined | Record<TBase, string>