• Checks if the given value is a Set which does not contain any of the forbidden values.

    Example

    // Ensure the set does not contain the values 'foo' and 'bar'.
    @SetNotContains(['foo', 'bar'])
    values: Set<string>

    Type Parameters

    • Value = unknown

      The type of values to check for.

    Parameters

    • forbidden: Iterable<Value>

      The values forbidden in the given set.

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator