Skip to content

Allow custom object types in JSDoc #9276

Closed
@dbaeumer

Description

@dbaeumer

From @Grim2d on June 18, 2016 10:11

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

Copied from original issue: microsoft/vscode#7847

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions