Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RuleOptions

Hierarchy

  • RuleOptions

Index

Properties

Properties

Optional args

args: any[]

The original list of arguments that was passed to the validator.

example
range(1, 99) #=> args = [1, 99]

Optional message

message: string | MessageResolver

The error message string or function that resolves to a string.

Optional type

type: undefined | string

The validation's type that must be used. This is useful so custom validators can override built-in validators.

Generated using TypeDoc