Documentation
    Preparing search index...

    Shortcut methods for commonly used route matchers

    Hierarchy

    • default
      • RouteMatchers
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Enforce value to be a number and also casts it to number data type

      Returns { match: RegExp; cast: (value: string) => number }

      Route matcher configuration for numeric values

    • Enforce value to be formatted as uuid

      Returns { match: RegExp; cast: (value: string) => string }

      Route matcher configuration for UUID values

    • Enforce value to be formatted as slug

      Returns { match: RegExp }

      Route matcher configuration for slug values