# NonNullish

> This document is the Markdown version of [valibot.dev/api/NonNullish/](https://valibot.dev/api/NonNullish/). For the complete documentation index, see [llms.txt](https://valibot.dev/llms.txt).

Extracts `null` and `undefined` from a type.

## Generics

- `TValue` `extends any`

## Definition

- `NonNullish` `TValue extends null | undefined ? never : TValue`
