Skip to content

remix/routes · Type

View Source

RouteDef

Summary

A route definition that can be a string pattern, pre-parsed RoutePattern, or an object with method and pattern.

Signature

type RouteDef<source> =
  | source
  | RoutePattern<source>
  | { method?: RequestMethod; pattern: source | RoutePattern<source> }