-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
TypeScript Version: 2.2.1 / nightly (2.2.0-dev.201xxxxx)
Code
In a js file
|
function first(x, ...rest) {
return x;
}
Request a docCommentTemplate
from TSServer at the |
Expected behavior:
The documentation template annotates the type of rest
with ...*
/**
*
* @param {*} x
* @param {...*} args
*/
function first(x, ...rest) {
return x;
}
Actual behavior:
rest
is annotated using *
/**
*
* @param {*} x
* @param {*} rest
*/
function first(x, ...rest) {
return x;
}
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue