class-validator-extended - v4.2.0
    Preparing search index...

    Function SetNotEmpty

    • Checks if the given value is a Set with at least one value.

      // Ensure the set is not empty.
      @SetNotEmpty()
      values: Set<string>

      Parameters

      • Optionaloptions: ValidationOptions

        Generic class-validator options.

      Returns PropertyDecorator