Declaration comments for the enum declaration in .d.ts

This commit is contained in:
Sheetal Nandi 2014-08-14 07:59:41 -07:00
parent 95a473c6e6
commit bf2f795807
2 changed files with 2 additions and 0 deletions

View File

@ -2167,6 +2167,7 @@ module ts {
function emitEnumDeclaration(node: EnumDeclaration) {
if (resolver.isDeclarationVisible(node)) {
emitJsDocComments(node);
emitDeclarationFlags(node);
write("enum ");
emitSourceTextOfNode(node.name);

View File

@ -26,6 +26,7 @@ x = 1 /* FancyPink */;
//// [commentsEnums.d.ts]
/** Enum of colors*/
declare enum Colors {
Cornflower = 0,
FancyPink = 1,