• Courses
  • Tutorials
  • Practice
  • Contests
Switch to Dark Mode

TypeScript | Generics in TypeScript | Question8

Last Updated : Mar 22, 2025
Discuss
Comments

How is the Record

generic type used in TypeScript?

A

To define an object type with keys of type K and values of type V.

B

To merge two types K and V.

C

To restrict the properties of K to a single type.

D

To make K optional in all cases.

Share your thoughts in the comments