-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
In DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Description
Given an implementation of a class:
// file.js
export default class File {
...
}
How can you use the type without importing the module:
// another
export default Util {
/** @param {File} file */
getFile(file) {
}
}
One option is to use @module
e.g.:
/** @param {module:./file:File} file */
getFile(file) {
}
teppeis, enko, Thaina, Sequoia, wiredearp and 64 moreniedzielski and SethFalcomorrisallison, Robula, gpeal, bioub, e00dan and 7 more
Metadata
Metadata
Assignees
Labels
In DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue