Skip to content

Fix some JSDoc factory function return types #38425

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

Merged

Conversation

dsherret
Copy link
Contributor

@dsherret dsherret commented May 8, 2020

Small PR that fixes some of the return types on the JS doc factory functions (didn't bother opening an issue because it's so small).

@@ -2592,23 +2592,23 @@ namespace ts {
}

export function createJSDocAuthorTag(comment?: string) {
return createJSDocTag(SyntaxKind.JSDocAuthorTag, "author", comment);
return createJSDocTag<JSDocAuthorTag>(SyntaxKind.JSDocAuthorTag, "author", comment);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm copying what's done elsewhere. This type argument is naughty, but your secret is safe with me (I won't tell Ryan).

@sandersn sandersn added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label May 20, 2020
@sandersn sandersn merged commit 68f8f22 into microsoft:master May 20, 2020
@dsherret dsherret deleted the fixJSDocTagFactoryFuncReturnTypes branch May 20, 2020 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants