Intermediate
TypeScript
Q42 / 100
What does the "keyof" operator produce?
Correct! Well done.
Incorrect.
The correct answer is A) A union of the property names (keys) of a type
A
Correct Answer
A union of the property names (keys) of a type
Explanation
keyof T produces a union type of all the property names (string literal types) of T.
Progress
42/100