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

    // Ensure the map does not contain the values 'foo' and 'bar'.
    @MapNotContains(['foo', 'bar'])
    values: Map<number, string>

    Type Parameters

    • Value = unknown

      The type of values to check for.

    Parameters

    • forbidden: Iterable<Value, any, any>

      The values forbidden in the given map.

    • Optionaloptions: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator