remix/route-pattern · Interface

View Source

RoutePatternJSON

Summary

Serialized URL pattern parts returned by the RoutePattern toJSON method.

Signature

interface RoutePatternJSON {
  hostname: string
  pathname: string
  port: string
  protocol: string
  search: string
}

Properties

hostname

Serialized hostname pattern, or an empty string when omitted.

pathname

Serialized pathname pattern without a leading /.

port

Serialized port constraint, or an empty string when omitted.

protocol

Serialized protocol constraint, or an empty string when omitted.

Serialized search constraint string without a leading ?.