Typescript Utility Types
Utility types are available globally in typescript. They are the basic facility of type-level programming in Typescript.
Work with objects
PartialandRequiredmake fields optional or requiredOmitandPickomit or add a fieldReadonlymake fields read-only- No
Mutablebut we can make our own
- No
Work with union:
ExcludeExtract
Work with functions:
ReturnTypeParameters
Other
NonNullableremovesnullandundefinedAwaitedunwrapPromise<T>type