Node doesn’t run typescript file. It runs the Javascript file that is compiled from typescript.
Structural Type System
Type checking focuses on the shape that values have. This is called Structural Typing
or Duck Typing
.
And this is also true if the subsets of the object’s fields match.
And a Class is no different from an object in this case:
Typescript Uses