Typescript inheritance deep dive
kreuzerk
Posted on November 8, 2018
Typescript and JavaScript are both awesome languages.Due to backwards compatibility we generally transpile our code to Javascript. But a lot of Typescript constructs do not exist in ES5. Inheritance for example is one of them.
So how does this work then? Typescript uses syntactic sugar to “mimic” the class and inheritance behaviour. It creates kind of an illusion of those concepts. If you want to know what I mean by that then checkout my article on Typescript inheritance deep dive
💖 💪 🙅 🚩
kreuzerk
Posted on November 8, 2018
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
webdev Mastering the Dependency Inversion Principle: Best Practices for Clean Code with DI
November 28, 2024
javascript Understanding JavaScript and TypeScript: A Comprehensive Guide with Use Cases
November 24, 2024
webdev Why Are Type Guards Necessary? Exploring Different Types and Their Use Cases
November 8, 2024