• Checks if the given value is a Set and contains all required values.

    // Ensure the set contains (at least) 'foo' and 'bar'.
    @SetContains(['foo', 'bar'])
    values: Set<string>

    Type Parameters

    • Value = unknown

      The type of values to check for.

    Parameters

    • required: Iterable<Value, any, any>

      The values required in the given set.

    • Optionaloptions: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator