Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

IsArrayContainerOf

  • IsArrayContainerOf(target: any[], validationOptions?: ValidationOptions): (object: any, propertyName: string) => void
  • The IsArrayContainerOf decorator checks if the target argument array values are contained by the decorated property.

    Example

    class IsArrayContainerOfDemo {
    @IsArrayContainerOf([1, 2, 3])
    p0: any[] = [1, 2, 3, 4]
    }

    Parameters

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

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

        • object: any
        • propertyName: string

        Returns void

validateValue

Generated using TypeDoc