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

    Example

    // Ensure the map does not contain the keys 13 and 42.
    @MapNotContainsKeys([13, 42])
    values: Map<number, string>

    Type Parameters

    • Key = unknown

      The type of keys to check for.

    Parameters

    • forbidden: Iterable<Key>

      The values forbidden in the given map.

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator