-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
From: microsoft/vscode#24291
TypeScript Version: 2.2.2
Code
/**
* Test.
*
* @param {Object.<string, number>} obj An object.
*/
function func(obj) {
console.log(obj);
}Expected behavior:
obj has a type of Object<string, number> (at at least some equivalent type with an index signature). This syntax is valid according to http://usejsdoc.org/tags-type.html
Actual behavior:
obj has an any type
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue