My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

What are the differences between Class and Interface in Typescript?

Lakshay Dulani's photo
Lakshay Dulani
·Aug 28, 2016

I mean if you check out TS' documentation, parameters can be of type Interface. An interface can inherit from a class. Similarly a class can inherit from an interface.