17 lines
345 B
JavaScript
17 lines
345 B
JavaScript
//// [indexerAsOptional.ts]
|
|
interface indexSig {
|
|
//Index signatures can't be optional
|
|
[idx?: number]: any; //err
|
|
}
|
|
|
|
class indexSig2 {
|
|
//Index signatures can't be optional
|
|
[idx?: number]: any //err
|
|
}
|
|
|
|
//// [indexerAsOptional.js]
|
|
var indexSig2 = (function () {
|
|
function indexSig2() {
|
|
}
|
|
return indexSig2;
|
|
})();
|