Skip to content

Expose Signature.thisParameter #53628

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
merged 2 commits into from
Sep 22, 2023
Merged

Expose Signature.thisParameter #53628

merged 2 commits into from
Sep 22, 2023

Conversation

Gerrit0
Copy link
Contributor

@Gerrit0 Gerrit0 commented Apr 2, 2023

Currently, there's no way to get the this parameter from a signature exposed in the public API without getting the declaration, if it exists, and checking the parameter nodes, which is far from ideal.

Fixes #48144

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Apr 2, 2023
@typescript-bot
Copy link
Collaborator

The TypeScript team hasn't accepted the linked issue #48144. If you can get it accepted, this PR will have a better chance of being reviewed.

@sandersn
Copy link
Member

@RyanCavanaugh we can wait on @ahejlsberg to provide an opinion but I think that thisParameter is so much like symbols in the parameters array that it's obvious that it should be public too.

@sandersn
Copy link
Member

I'm going to bring this up to date with main and merge it.

@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.

@sandersn sandersn merged commit da8b54d into microsoft:main Sep 22, 2023
snovader pushed a commit to EG-A-S/TypeScript that referenced this pull request Sep 23, 2023
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
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.

Compiler API: Expose signature.thisParameter
4 participants