-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Out of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScriptWon't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix itThe severity and priority of this issue do not warrant the time or complexity needed to fix it
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.)
Metadata
Metadata
Assignees
Labels
Out of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScriptWon't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix itThe severity and priority of this issue do not warrant the time or complexity needed to fix it