Beginner
TypeScript
Q10 / 100
What is the purpose of an interface in TypeScript?
Correct! Well done.
Incorrect.
The correct answer is B) To define the shape of an object
B
Correct Answer
To define the shape of an object
Explanation
Interfaces describe the structure (shape) that an object must conform to, purely for compile-time type checking.
Progress
10/100