Skip to content

[WIP] feat(43950): support import types in jsdoc links #61248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

a-tarasyuk
Copy link
Contributor

Fixes #43950

@typescript-bot
Copy link
Collaborator

Looks like you're introducing a change to the public API surface area. If this includes breaking changes, please document them on our wiki's API Breaking Changes page.

Also, please make sure @DanielRosenwasser and @RyanCavanaugh are aware of the changes, just as a heads up.

@@ -9288,8 +9288,10 @@ namespace Parser {

function parseJSDocLinkName() {
if (tokenIsIdentifierOrKeyword(token())) {
if (token() === SyntaxKind.ImportKeyword) {
return parseImportType();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandersn should we reuse parseImportType, or would creating a new node to handle this case be better?

@a-tarasyuk a-tarasyuk closed this Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support import types in JSDoc links
2 participants