• Checks if the given value is null.

    // Ensure the value is null (but not undefined).
    @IsNull()
    value: null

    Parameters

    • Optionaloptions: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator