typescript-book
typescript-book copied to clipboard
Predefined type generators section
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.
Also mapped type - modifier - controllers : https://stackoverflow.com/a/52417260/390330
Specific commit that introduces the IncludeReadonly, ExcludeReadonly, IncludeOptional, ExcludeOptional modifiers https://github.com/microsoft/TypeScript/commit/a629acd8fd4844742fdd01ab6cf55afa9377db0e