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

generate-types: Fix canBeOptional computation in parseSignature #2

Closed
wants to merge 1 commit into from

Conversation

andersk
Copy link

@andersk andersk commented Oct 28, 2020

A parameter can be optional if all of the following parameters are optional.

This fixes several instances of “error TS1016: A required parameter cannot follow an optional parameter” if you try to regenerate the types for webpack with strictNullChecks enabled.

A parameter can be optional if *all* of the following parameters are
optional.

This fixes several instances of “error TS1016: A required parameter
cannot follow an optional parameter” if you try to regenerate the
types for webpack with strictNullChecks enabled.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@andersk
Copy link
Author

andersk commented Jul 3, 2022

This was merged as 6a5ad8b without attribution.

@andersk andersk closed this Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant