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

    Example

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

    Parameters

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator