Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

  • EasyValidatorRule

Index

Properties

key

key: keyof D

要验证字段在数据对象中的键名

message

message: any

提示信息

Optional required

required: undefined | false | true

是否必填

Optional test

test: undefined | RegExp | EasyValidatorRuleTestFunction<D>

自定义测试,支持正则、同步函数、异步函数。

为函数时,除非显式返回 false,否则都将视为测试通过。

Optional type

type: undefined | "number" | "integer" | "chineseMobilePhoneNumber" | "chineseIdCardNumber" | "url" | "email" | "chineseName"

验证类型

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc