typescript-book icon indicating copy to clipboard operation
typescript-book copied to clipboard

Predefined type generators section

Open basarat opened this issue 7 years ago • 2 comments

Again cover the basic:

  • keyof
  • Lookup T[K]
  • Mapped
  • Conditional (and infer)

And then cover the ones in lib.d.ts Pick / Readonly / Exclude / Return type etc.

basarat avatar May 29 '18 02:05 basarat

Also mapped type - modifier - controllers : https://stackoverflow.com/a/52417260/390330

basarat avatar Sep 20 '18 03:09 basarat

Specific commit that introduces the IncludeReadonly, ExcludeReadonly, IncludeOptional, ExcludeOptional modifiers https://github.com/microsoft/TypeScript/commit/a629acd8fd4844742fdd01ab6cf55afa9377db0e

beaucollins avatar Apr 16 '20 17:04 beaucollins