TypeScript | Advanced Types in TypeScript | Question9

Last Updated :
Discuss
Comments

What is the purpose of the Pick<T, K> utility type in TypeScript?

To exclude properties K from type T.

To create a new type with only properties K from T.

To make all properties of T readonly.

To create an intersection type with T and K.

Share your thoughts in the comments