- Published on
Record - The built-in Typescript Utility for “that” type (Advanced TypeScript)
- Authors
- Name
- Lucas Floriani
- @lucasfloriani13
Record - The built-in Typescript Utility for “that” type (Advanced TypeScript)
Record: The built-in Typescript Utility for “that” type (Advanced TypeScript)
Difference between record and mapped type
Records will enforce that all keys provided, like enums or literal types, are used in the key of the object: