null, or undefined.
Signature
Type Inference
nullish() creates a union type that includes both null and undefined:
Basic Usage
With Default Value
If a default value is explicitly provided, return that instead in thenull or undefined case:
Lazy Default Values
Default values can be functions that are evaluated lazily:Union Behavior
nullish() is implemented using either(nullish_, decoder) where nullish_ is a special decoder for null | undefined:
