Skip to content
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

Rename isParameterDeclaration to isPartOfParameterDeclaration #58251

Merged

Conversation

jakebailey
Copy link
Member

Pulled out of #52283.

This function has confused a number of people working on TS because it's named like a type guard, but it instead reports true for both actual parameter declarations and binding patterns within parameters. isParameter is the type guard, which we should rename at some point.

https://github.com/search?q=%2F%5Cbts%5C.isParameterDeclaration%5Cb%2F+%28language%3ATypeScript+OR+language%3AJavaScript%29&type=code shows that nobody is using this externally, so I think this should be safe to do.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Apr 19, 2024
@jakebailey jakebailey merged commit 8426565 into microsoft:main Apr 19, 2024
25 checks passed
@jakebailey jakebailey deleted the rename-is-parameter-declaration branch April 19, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants