Skip to content

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
@jakebailey jakebailey deleted the rename-is-parameter-declaration branch April 19, 2024 16:34
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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