TypeScript’s predefined types in lib.d.ts
are usually very well-typed and give tons of information on how to use built-in functionality as well as providing you with extra-type safety. Until they don’t. Consider the following example with an object type Person
:
↧
TypeScript: Improving Object.keys
↧