Support JSDoc for type alias

This commit is contained in:
Andy Hanson
2016-10-11 11:14:15 -07:00
parent 3b0515fd8b
commit 413a26b94d
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 ");