Opening this issue in response to microsoft/TypeScript#24558.
I am currently working on a PR to add a new page to the Handbook titled Utility Types (open to suggestions on the title & location of this documentation).
Note that Utility Types is a natural name for these utilities as it's the name adopted by Flow, and more importantly, it's the terminology originally used in the release notes for TS 2.1 to describe several of these utilities.
This PR will document the utility types below:
Feedback appreciated!
Opening this issue in response to microsoft/TypeScript#24558.
I am currently working on a PR to add a new page to the Handbook titled Utility Types (open to suggestions on the title & location of this documentation).
Note that Utility Types is a natural name for these utilities as it's the name adopted by Flow, and more importantly, it's the terminology originally used in the release notes for TS 2.1 to describe several of these utilities.
This PR will document the utility types below:
Partial<T>Readonly<T>Record<K, T>Pick<T, K>Exclude<T, U>Extract<T, U>NonNullable<T>ReturnType<T>InstanceType<T>Required<T>ThisType<T>(would resolve DocumentThisType<T>#649)Feedback appreciated!