• Checks if the given value is a Set.

    This is a convenience decorator for @IsInstance(Set).

    Example

    // Ensure the value is a Set.
    @IsSet()
    values: Set<string>

    Parameters

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator