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

Infer the name of a destructured parameter #1704

Merged
merged 2 commits into from Sep 23, 2021

Commits on Sep 20, 2021

  1. Infer the name of a destructured parameter

    The name of a destructured parameter can now be inferred from a JSDoc
    comment. The name is only inferred if the number of top-level `@param`
    tags in the JSDoc comment exactly matches the number of parameters.
    
    Closes TypeStrong#1703
    Gudahtt committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    8ee3b41 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. Add unit tests for functions with destructured parameters

    Three additional test cases have been added to the `function` tests in
    the `converter` test directory. There is a test for when there are the
    correct number of `@param` directives, and there are tests for the
    cases where there is one too many or one too few `@param` directives.
    Gudahtt committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    4118426 View commit details
    Browse the repository at this point in the history