Closed
Description
Consider input code like:
import {Foo} from './foo';
/**
* @type {Foo}
*/
var foo = new Foo();
TypeScript imports the module under a generated name (foo_1
when I tried it), producing code like:
/**
* @type {Foo}
*/
var foo = new foo_1.Foo();
But now the JSDoc refers to a type that doesn't exist -- it should instead say @type {foo_1.Foo}
. (Another way they could match is if the import created a new variable Foo
instead of using foo_1.Foo
everywhere.)