Merge pull request #11540 from Microsoft/jsdoc_type_alias

Support JSDoc for type alias
This commit is contained in:
Andy 2016-10-11 13:31:10 -07:00 committed by GitHub
commit 4fa2e5ed8c
2 changed files with 8 additions and 1 deletions

View File

@ -5352,7 +5352,7 @@ namespace ts {
parseExpected(SyntaxKind.EqualsToken);
node.type = parseType();
parseSemicolon();
return finishNode(node);
return addJSDocComment(finishNode(node));
}
// In an ambient declaration, the grammar only allows integer literals as initializers.

View File

@ -0,0 +1,7 @@
///<reference path="fourslash.ts" />
/////** DOC */
////type /**/T = number
goTo.marker();
verify.quickInfoIs("type T = number", "DOC ");