DEV Community

Cover image for Typescript inheritance deep dive
kreuzerk
kreuzerk

Posted on • Originally published at Medium

Typescript inheritance deep dive

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

Discussion (0)