16 lines
270 B
JavaScript
16 lines
270 B
JavaScript
|
//// [indexSignatureWithAccessibilityModifier.ts]
|
||
|
interface I {
|
||
|
[public x: string]: string;
|
||
|
}
|
||
|
|
||
|
class C {
|
||
|
[public x: string]: string
|
||
|
}
|
||
|
|
||
|
//// [indexSignatureWithAccessibilityModifier.js]
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
}
|
||
|
return C;
|
||
|
})();
|