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

x/rimbu/core/main/exports.ts>Deep.Path.Internal.IsOptional

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Deep.Path.Internal.IsOptional
import { type Deep } from "https://deno.land/x/rimbu@1.0.3/core/main/exports.ts";
const { IsOptional } = Deep.Path.Internal;

Determines whether the given type T is optional, that is, whether it can be null or undefined.

Type Parameters

T
optional
True = true
optional
False = false
definition: undefined extends T ? True : null extends T ? True : False