TypeScript | Generics in TypeScript | Question8

Last Updated :
Discuss
Comments

How is the Record

generic type used in TypeScript?

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

To merge two types K and V.

To restrict the properties of K to a single type.

To make K optional in all cases.

Share your thoughts in the comments