TypeScript | Object Types and Interfaces in TypeScript | Question7

Last Updated :
Discuss
Comments

What is the recommended approach when you need to define a reusable object shape that might need extension in the future?

Use a type alias.

Use an interface.

Use any type.

Use a class.

Share your thoughts in the comments