14 lines
267 B
TypeScript
14 lines
267 B
TypeScript
//// [classImplementingInterfaceIndexer.ts]
|
|
interface I {
|
|
[index: string]: { prop }
|
|
}
|
|
class A implements I {
|
|
[index: string]: { prop }
|
|
}
|
|
|
|
//// [classImplementingInterfaceIndexer.js]
|
|
var A = (function () {
|
|
function A() {
|
|
}
|
|
return A;
|
|
})();
|