What does the Record utility type create?

TypeScript Associate Medium

TypeScript Associate — Medium

What does the Record utility type create?

Key points

  • Record utility type defines a specific object structure
  • Keys are of type K and values are of type V
  • Useful for creating type-safe objects with predefined keys and values

Ready to go further?

Related questions