12 lines
195 B
JavaScript
12 lines
195 B
JavaScript
|
//// [ambientEnum1.ts]
|
||
|
declare enum E1 {
|
||
|
y = 4.23
|
||
|
}
|
||
|
|
||
|
// Ambient enum with computer member
|
||
|
declare enum E2 {
|
||
|
x = 'foo'.length
|
||
|
}
|
||
|
|
||
|
//// [ambientEnum1.js]
|