mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Declaration comments for the enum declaration in .d.ts
This commit is contained in:
parent
95a473c6e6
commit
bf2f795807
@ -2167,6 +2167,7 @@ module ts {
|
||||
|
||||
function emitEnumDeclaration(node: EnumDeclaration) {
|
||||
if (resolver.isDeclarationVisible(node)) {
|
||||
emitJsDocComments(node);
|
||||
emitDeclarationFlags(node);
|
||||
write("enum ");
|
||||
emitSourceTextOfNode(node.name);
|
||||
|
||||
@ -26,6 +26,7 @@ x = 1 /* FancyPink */;
|
||||
|
||||
|
||||
//// [commentsEnums.d.ts]
|
||||
/** Enum of colors*/
|
||||
declare enum Colors {
|
||||
Cornflower = 0,
|
||||
FancyPink = 1,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user