9 lines
No EOL
194 B
TypeScript
9 lines
No EOL
194 B
TypeScript
interface indexSig {
|
|
//Index signatures can't be optional
|
|
[idx?: number]: any; //err
|
|
}
|
|
|
|
class indexSig2 {
|
|
//Index signatures can't be optional
|
|
[idx?: number]: any //err
|
|
} |