Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

IsEmpty

  • IsEmpty(validationOptions?: ValidationOptions): (object: any, propertyName: string) => void
  • Decorator that checks if the property is empty.

    Example

    class IsEmptyDemo {
    @IsEmpty()
    e:string = 'notempty'
    }

    Parameters

    Returns (object: any, propertyName: string) => void

      • (object: any, propertyName: string): void
      • Parameters

        • object: any
        • propertyName: string

        Returns void

validateArray

validateValue

  • TODO ... Add validation options

    Value is valid if it passes the {@link isEmpty} check.

    Parameters

    • vc: ValidationContext

      The validation context.

    • o: any

      The object containing the property to validate.

    Returns boolean

    True if the value is empty, false otherwise.

Generated using TypeDoc