Suppose I know that I have array like ['string', 10, true];. Is there a way to write an interface for it? I know there's globally indexed interface:
interface IEntry {
[i:number]:string;
}
But typing the following is not working:
interface IEntry {
[0]:string;
[1]:number;
[2]:boolean;
}