Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

IsArrayUnique

  • IsArrayUnique(validationOptions?: ValidationOptions): (object: any, propertyName: string) => void
  • a Decorator that checks that the property is an array and that it is one containing unique values.

    Example

     class isArrayUniqueDemo {
    @IsArrayUnique()
    p0: 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 {@link isArrayUnique} check.

    Parameters

    • vc: ValidationContext

      The validation context.

    • o: any

      The object containing the property to validate.

    Returns boolean

    The result of the call to {@link isArrayUnique}

Generated using TypeDoc