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