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

Allow custom object types in JSDoc #7847

Closed
GRiMe2D opened this issue Jun 18, 2016 · 2 comments
Closed

Allow custom object types in JSDoc #7847

GRiMe2D opened this issue Jun 18, 2016 · 2 comments
Assignees
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@GRiMe2D
Copy link

GRiMe2D commented Jun 18, 2016

I'm using "vanilla" javascript for development. If I write custom object type in JSDoc, it appears as any or void . It will be more helpful, if one can type custom types.

  • VSCode Version: 1.1.1 (1.1.1)
  • OS Version: OSX (10.11.4)

Steps to Reproduce:
1.

/**
 * @param document {Object}
 * @returns {Object}
 */
function addDocument(document) {

}

screen shot 2016-06-18 at 3 07 53 pm
1.

/**
 * @param document {ProductProjection}
 * @returns {ObjectId}
 */
function addDocument(document) {

}

screen shot 2016-06-18 at 3 07 15 pm

@dbaeumer
Copy link
Member

dbaeumer commented Jun 20, 2016

Moving to TS team which owns the JS smartness.

@dbaeumer
Copy link
Member

This issue was moved to microsoft/TypeScript#9276

@dbaeumer dbaeumer added javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Jun 20, 2016
@dbaeumer dbaeumer self-assigned this Jun 20, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 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