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

    // 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, any, any>

      The values forbidden in the given set.

    • Optionaloptions: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator