Open Hastaroth1 opened 3 years ago
Hey @Hastaroth1 sorry for not responding, this slipped past me. It looks like this might be caused by the fact that it's TypeScript. I didn't actually take into account that this plugin should work for TS too. I'll take a look into it as soon as I have time. Thanks for reporting!
When I apply the fix for
someFunc
in this code:This is the result:
For some reason the import and class declaration are copied and this breaks the code.
Using the fix on
someOtherFunc
works as expected.The issue is related to the function having parameters. From my limited testing, it does not matter the name, type or number of parameters. As soon as there is one parameter, this breaks.
I've made a repo with the reproduction: https://github.com/Hastaroth1/no-constructor-bind-error