Skip to content

Support ES6 class property type annotation by comment #11014

Closed
@waderyan

Description

@waderyan

From @bigopon on September 19, 2016 5:28

Currently you can do this

/**@type {number} myVar */
var myVar = something

👍 Very cool as sometime intellisense needs help, but we can't do this

class MyClass {
    // Not working
    /**@type {number} myProp */
    myProp

    // Not working either
    /**@property {number} myProp2 */
    myProp2
}

Would be great if supported.

Thanks

Copied from original issue: microsoft/vscode#12240

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions