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

【JSDOC】class method use arrow function can not add type with JSDOC. #36283

Closed
Lxxyx opened this issue Oct 14, 2017 · 1 comment
Closed

【JSDOC】class method use arrow function can not add type with JSDOC. #36283

Lxxyx opened this issue Oct 14, 2017 · 1 comment
Assignees
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@Lxxyx
Copy link

Lxxyx commented Oct 14, 2017

  • VSCode Version: 1.17.1
  • OS Version: macOS 10.12

Steps to Reproduce:

image

image

Reproduces without extensions: Yes

@mjbvz
Copy link
Contributor

mjbvz commented Oct 16, 2017

Thanks! Opened microsoft/TypeScript#19231 to track this upstream.

As a workaround, it seems you can specify the jsdoc after the assignment:

class Foo {

    bar =
        /**
        * @param {string} x
        */
        (x) => { };
}

@mjbvz mjbvz closed this as completed Oct 16, 2017
@mjbvz mjbvz added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Oct 16, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants