Open tpluscode opened 2 days ago
Hi, thanks for this. Can you provide a pointer to the docs you are referring to?
For reference, here's an SO question which links to relevant TypeScript docs: https://stackoverflow.com/questions/44153378/typescript-abstract-optional-method
The TypeScript target produces a visitor similar to the following:
When overridden as shown in the docs, the code doesn't work (override is never called) and the compiler will show an error explaining the reason:
As a workaround, it is possible to switch to a property:
but I expect that the intent from the target is overloading, same as one would overload the visitor methods in plain JS target. To allow that, the target can be modified to