Skip to main content
Module

x/rimbu/mod.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@0.14.0/mod.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