Options
All
  • Public
  • Public/Protected
  • All
Menu

Customize property definition. When all other property definition type cannot satisfy your requirement, use this definition with a customized validator function to do property validation.

Hierarchy

Index

Properties

Optional allowNull

allowNull: boolean

Whether this property is allowed to be null

Optional isOptional

isOptional: boolean

Whether this property is optional

type

Type of this property

validator

validator: (input: any) => boolean

Type declaration

    • (input: any): boolean
    • The customized validator function to do customized validation

      Parameters

      • input: any

        The value to validate

      Returns boolean

      True means the given value is of the specified type, otherwise false

Generated using TypeDoc