You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I remember of the discussion we had about this and the quick hack that @RyanCavanaugh wrote:
There's no easy way around this because the rules are different between TypeScript and Javascript
You can hack it by allowing merging of a variable and a method in Javascript only, but it's not clear what else breaks in the compiler.
The right fix might be make the compiler understand merged variable/method symbols, or something else entirely (I can't remember if we came up with anything promising).
This is a legitimate-ish pattern in Javascript:
classC{constructor(){// make sure to bind all methodsthis.m=this.m.bind(this);}m(){}}
In a JavaScript file under
--allowJs
:Produces errors
The text was updated successfully, but these errors were encountered: