Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Validate

校验类

Hierarchy

  • Validate

Index

Constructors

constructor

Accessors

array

boolean

func

isEmpty

isRequired

not

number

object

string

symbol

Methods

$validate

  • $validate(value: any): boolean
  • 执行校验

    Parameters

    • value: any

    Returns boolean

arrayOf

enums

equals

isType

length

oneOf

reset

shape

test

Static getType

  • getType(value: any): string
  • 返回数据类型

    Parameters

    • value: any

      目标值

    Returns string

Generated using TypeDoc