Excludes nullish values (null and undefined) from a given type. This type is useful when you need to ensure a value is always defined (i.e., not null or undefined).
null
undefined
The type from which null and undefined are excluded.
Excludes nullish values (
nullandundefined) from a given type. This type is useful when you need to ensure a value is always defined (i.e., not null or undefined).