Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RouteParamValidator

Route validator subspecs are optional and used to coerce and/or validate individual route parameters.

Hierarchy

  • RouteParamValidator

Index

Properties

Properties

check

check: Fn<any, boolean>

Optional arbitrary value validation. If any validator returns non-true result, the currently checked route becomes unmatched/invalid and the router continues checking other routes.

Optional coerce

coerce: Fn<string, any>

Optional coercion function executed prior to validation.

Generated using TypeDoc