-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Compiler should rewrite namespaced types found in JSDoc #8120
Copy link
Copy link
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
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
Type
Fields
Give feedbackNo fields configured for issues without a type.
Consider input code like:
TypeScript imports the module under a generated name (
foo_1when I tried it), producing code like: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 variableFooinstead of usingfoo_1.Fooeverywhere.)