• Checks if the given value is null.

    Example

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

    Parameters

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator