Helpful
    Preparing search index...

    Represents a constraint that requires another property to be set as well.

    Implements

    • ValidatorConstraintInterface
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Validates that another property is set in addition to the current value.

      Parameters

      • _: any

        Ignored.

      • args: ValidationArguments

        The validation args that contains the property constraint to check.

      Returns boolean

      True of args.object[args.constraints[0]] is defined. False otherwise.