TypeScript
TypeScript copied to clipboard
JS merge quickinfo is inconsistent
Given this playground,
module.exports = class C {}
module.exports.fn = function() {}
quick info display on hover of class C depends on if you hover module.exports first or not. If you hover module.exports first, it's
(local class) C
module C
if you hover class C first, without hovering anything else, it's
(local class) C
The first - the version with module C - is the correct one. In the later case, we fail to merge the module and class symbols.