• Checks if the given value is a Map.

    This is a convenience decorator for @IsInstance(Map).

    // Ensure the value is a Map.
    @IsMap()
    values: Map<string, string>

    Parameters

    • Optionaloptions: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator