Quantcast
Channel: When to use classes vs. interfaces in a TypeScript library? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by T.J. Crowder for When to use classes vs. interfaces in a TypeScript...

(From your comment):I'm asking why they defined them as classes and not interfaces.There's overlap between type, interface, and class (you clearly know that, but I have to start somewhere :-) ), but...

View Article


When to use classes vs. interfaces in a TypeScript library?

I have seen related questions like this one, but they all assume the difference between classes and interfaces are that classes can be instantiated while interfaces cannot. However, take for example...

View Article

Browsing all 2 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>