Abstract classes compiler: Stop native implementation of an Abstract Class #11733
Labels
Out of Scope
This idea sits outside of the TypeScript language design constraints
Suggestion
An idea for TypeScript
I'm willing to write the change to the compiler if people believe this is a good idea. Currently abstract classes are compiled into public classes in JavaScript. I know native Javascript doesn't support Abstract classes but you can make abstract classes not instantiate abstract classes.
Typescript Example:
Expected behavior:
Actual behavior:
I'm currently use this to make abstract classes in native Javascript. It means we can now make open source projects in TypeScript and not have to worry about people extending from a Abstract class.
You can also do the same with functions. this.functionName === Undefined. You can even make sure the parameters are correct
The text was updated successfully, but these errors were encountered: