---
title: nullable
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.3/packages/data-schema/src/lib/schema.ts#L632
---

# nullable

## Summary

Allow `null` as an input value, short-circuiting validation when `null` is provided.

## Signature

```ts
function nullable<input, output>(
  schema: Schema<input, output>,
): Schema<input | null, output | null>;

```

## Parameters

### `schema`

The wrapped schema

## Returns

A schema that accepts `null` in addition to the wrapped schema