Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/testing/types.ts>IsNullable

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
type alias IsNullable
import { type IsNullable } from "https://deno.land/std@0.204.0/testing/types.ts";

Checks if type T is possibly null or undefined.

definition: Extract<T, null | undefined> extends never ? false : true