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

Fix getTypeFromJSDocVariadicType in callback tag #43562

Merged
merged 3 commits into from
Apr 7, 2021

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Apr 6, 2021

As far as I can tell, this never worked, since @callback support was added after the last time this code was changed.

There is a much more general change to treat callback tags as jsdoc hosts, or at least host signatures, but the tree shape of callbacks is quite different from those of a normal signature. Specifically, parameters and return types are themselves tags, and their types are buried another two levels down their respective trees.

Fixes #43072

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Apr 6, 2021
@sandersn sandersn requested review from armanio123 and weswigham April 6, 2021 23:48
@sandersn sandersn merged commit 2bb54dc into master Apr 7, 2021
@sandersn sandersn deleted the fix-getTypeFromJSDocVariadicType-in-callback-tag branch April 7, 2021 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSDoc rest arguments can no longer be extracted with Parameters<T>
3 participants