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
{{ message }}
Repository navigation
No intellisense when exporting es3 style class #8144
Looks related (or identical) to #7586, where the language service treats TypeScript and JavaScript function expressions worse than function declarations. I think that fixing #7586 will fix this, but this example should be added as a test.
Activity
dbaeumer commentedon Apr 18, 2016
Denys Yefimenko (@denysyefimenko) the change part reads exactly the same as in steps. e.g
Are we missing something ?
dbaeumer commentedon Apr 18, 2016
From Denys Yefimenko (@denysyefimenko) on April 18, 2016 11:58
Yes, you do :) In changed part I declared constructorFunction without using
var variable = function() {...}construction.dbaeumer commentedon Apr 18, 2016
Thanks. Missed that.
Moving to TS.
billti commentedon Apr 18, 2016
Interesting... ping Ryan Cavanaugh (@RyanCavanaugh) . Do we infer JS types from function declarations differently to function expressions?
sandersn commentedon Jun 6, 2016
Looks related (or identical) to #7586, where the language service treats TypeScript and JavaScript function expressions worse than function declarations. I think that fixing #7586 will fix this, but this example should be added as a test.
sandersn commentedon Jun 8, 2016
Actually, the fix for #7586 (#9010) doesn't fix this. Looks like it will need a separate fix.
sandersn commentedon Jun 10, 2016
Fix is up at #9088.