Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

IsArray

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

    Example

    class IsArrayDemo {
    @isArray() alpha:any[] = [1,2,3]
    }

    Parameters

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

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

        • object: any
        • propertyName: string

        Returns void

validateValue

  • Value is valid if it passes the IsArray check.

    Parameters

    • vc: ValidationContext

      The validation context.

    • o: any

      The object containing the property to validate.

    Returns boolean

    True if the property is an array

Generated using TypeDoc