16 lines
280 B
JavaScript
16 lines
280 B
JavaScript
//// [computedPropertyNamesContextualType4_ES5.ts]
|
|
interface I {
|
|
[s: string]: any;
|
|
[s: number]: any;
|
|
}
|
|
|
|
var o: I = {
|
|
[""+"foo"]: "",
|
|
[""+"bar"]: 0
|
|
}
|
|
|
|
//// [computedPropertyNamesContextualType4_ES5.js]
|
|
var o = {
|
|
["" + "foo"]: "",
|
|
["" + "bar"]: 0
|
|
};
|