2014-07-13 01:04:16 +02:00
|
|
|
//// [commentsEnums.ts]
|
|
|
|
|
|
|
|
/** Enum of colors*/
|
|
|
|
enum Colors {
|
|
|
|
/** Fancy name for 'blue'*/
|
|
|
|
Cornflower /* blue */,
|
|
|
|
/** Fancy name for 'pink'*/
|
|
|
|
FancyPink
|
2014-08-15 22:50:47 +02:00
|
|
|
} // trailing comment
|
2014-07-13 01:04:16 +02:00
|
|
|
var x = Colors.Cornflower;
|
|
|
|
x = Colors.FancyPink;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// [commentsEnums.js]
|
2014-08-14 15:48:40 +02:00
|
|
|
/** Enum of colors*/
|
2014-07-13 01:04:16 +02:00
|
|
|
var Colors;
|
|
|
|
(function (Colors) {
|
2014-08-14 15:48:40 +02:00
|
|
|
/** Fancy name for 'blue'*/
|
2014-08-15 01:36:33 +02:00
|
|
|
Colors[Colors["Cornflower"] = 0] = "Cornflower"; /* blue */
|
2014-08-14 15:48:40 +02:00
|
|
|
/** Fancy name for 'pink'*/
|
2014-07-13 01:04:16 +02:00
|
|
|
Colors[Colors["FancyPink"] = 1] = "FancyPink";
|
2014-08-15 22:50:47 +02:00
|
|
|
})(Colors || (Colors = {})); // trailing comment
|
2014-07-13 01:04:16 +02:00
|
|
|
var x = 0 /* Cornflower */;
|
|
|
|
x = 1 /* FancyPink */;
|
|
|
|
|
|
|
|
|
|
|
|
//// [commentsEnums.d.ts]
|
2014-08-14 16:59:41 +02:00
|
|
|
/** Enum of colors*/
|
2014-07-11 23:44:31 +02:00
|
|
|
declare enum Colors {
|
2014-08-14 17:02:03 +02:00
|
|
|
/** Fancy name for 'blue'*/
|
2014-07-11 23:44:31 +02:00
|
|
|
Cornflower = 0,
|
2014-08-14 17:02:03 +02:00
|
|
|
/** Fancy name for 'pink'*/
|
2014-07-11 23:44:31 +02:00
|
|
|
FancyPink = 1,
|
|
|
|
}
|
2014-07-12 01:36:06 +02:00
|
|
|
declare var x: Colors;
|