• Checks if the given value is a Set with a size greater than or equal to minimum.

    // Ensure the set has at least 5 entries.
    @SetMinSize(5)
    values: Set<string>

    Parameters

    • minimum: number

      The minimum allowed size of the set.

    • Optionaloptions: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator