• Checks if the given value is a Set.

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

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

    Parameters

    • Optionaloptions: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator