What does `Record` utility type represent?

TypeScript Associate Easy

TypeScript Associate — Easy

What does `Record` utility type represent?

Key points

  • `Record` is used to define an object type with specific key and value types.
  • It helps in creating type-safe dictionaries in TypeScript.
  • The keys and values can be of any type specified when using `Record`.
  • It is a useful utility type for defining structured data in TypeScript.

Ready to go further?

Related questions