Skip to content

JSDoc {Object} and {object} shown as any #18396

@mjbvz

Description

@mjbvz

TypeScript Version: 2.5.2

From: microsoft/vscode#34107 (comment)

Code

For the JavaScript

/**
 * @param {Object} x 
 */
function foo(x) { } 

Hover over x.

Expected behavior:
Type of x is shown as Object

Actual behavior:
Type of x is shown as any

Metadata

Metadata

Assignees

No one assigned

    Labels

    VS Code TrackedThere is a VS Code equivalent to this issueWorking as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions