Skip to content

Latest commit

 

History

History

Compact

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Compact

Filters out null and undefined values from a union type T.

Example

type X = null | undefined | number | string
type C = Compact<X>; // number | string