Typescript Utility Types
Utility types are available globally in typescript. They are the basic facility of type-level programming in Typescript.
Work with objects
Partial
andRequired
make fields optional or requiredOmit
andPick
omit or add a fieldReadonly
make fields read-only- No
Mutable
but we can make our own
- No
Work with union:
Exclude
Extract
Work with functions:
ReturnType
Parameters
Other
NonNullable
removesnull
andundefined
Awaited
unwrapPromise<T>
type