Some of the notes are take from the book Programming TypeScript
The keying-in operator
|
|
The keyof operator
|
|
Mapped Types
https://www.typescriptlang.org/docs/handbook/2/mapped-types.html
Companion Object Pattern
in the same scope, you can have the same name bound to both a type and a value. It lets you group type and value information that’s semantically part of a single name (like Currency) together. It also lets consum‐ ers import both at once:
|
|