Compiler should rewrite namespaced types found in JSDoc #8120
Labels
Out of Scope
This idea sits outside of the TypeScript language design constraints
Suggestion
An idea for TypeScript
Won't Fix
The severity and priority of this issue do not warrant the time or complexity needed to fix it
Consider input code like:
TypeScript imports the module under a generated name (
foo_1
when 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 variableFoo
instead of usingfoo_1.Foo
everywhere.)The text was updated successfully, but these errors were encountered: