Web Development
TypeScript
Subjective
Oct 04, 2025
Explain the difference between interface and type in TypeScript.
Detailed Explanation
Interfaces are extensible and can be merged, primarily for object shapes. Types are more flexible, support unions/intersections, but cannot be extended or merged.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts