interface NumberArray {
[index: number]: number;
}
let fibonaccio: NumberArray = { 1: 1 };
let fibonacci: NumberArray = [1, 1, 2, 3, 5];
I know that the fibonacci line represents an array of NumberArray interface types, which means that all the elements in the array are NumberArray interface types
my doubt is
in
, why it is an interface type, and I don"t understand it