-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarified
Milestone
Description
π Search Terms
jsdoc import @import
π Version & Regression Information
This changed between versions 5.5.4 and 5.6.3.
β― Playground Link
No response
π» Code
/** @import Foo from "my-app/foo" */
/** @return {Foo} */
function getFoo() {
return myFoo;
}tsconfig.json excerpt:
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"my-app/*": ["src/*"]
}
}
}
π Actual behavior
In TypeScript 5.5 the above worked correctly with getFoo returning Foo. As of TypeScript 5.6 this now returns an any. This workaround resolves the problem but feels like it is not what is intended.
/** @import { default as Foo } from "my-app/foo" */
/** @return {Foo} */
function getFoo() {
return myFoo;
}π Expected behavior
I expected default exports to work with @import in JSDoc.
Additional information about the issue
No response
gitKrystan and sergio-tb
Metadata
Metadata
Assignees
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarified