Skip to content

fix(47004): arguments detection for jsdoc / javascript has a false positive #47054

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 1 commit into from
Dec 16, 2021

Conversation

a-tarasyuk
Copy link
Contributor

Fixes #47004

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Dec 7, 2021
Copy link
Member

@DanielRosenwasser DanielRosenwasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably fine, but

  1. I think a better test would be a simple checkJs test that ensures you get an error when you call the function with too many arguments, and also possibly requests declaration emit.
  2. I think the test name is a bit broad. Maybe argumentsPropertyNameInJsMode1.ts or something.

@a-tarasyuk
Copy link
Contributor Author

@DanielRosenwasser I've added tests with checkJs. Also, I left the "fourslash" tests for "QI", if you think these tests are useless I will remove them.

@DanielRosenwasser DanielRosenwasser merged commit c282771 into microsoft:main Dec 16, 2021
mprobst pushed a commit to mprobst/TypeScript that referenced this pull request Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

arguments detection for jsdoc / javascript has a false positive
4 participants