9 lines
No EOL
217 B
TypeScript
9 lines
No EOL
217 B
TypeScript
enum TShirtSize {
|
|
Small,
|
|
Medium,
|
|
Large
|
|
}
|
|
var mySize = TShirtSize.Large;
|
|
var test = TShirtSize[mySize];
|
|
// specifically checking output here, bug was that test used to be undefined at runtime
|
|
test + '' |