Typescript uses interfaces to represent array problems?

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

Apr.29,2022
The

array can be regarded as {0: 1, 1: 1, 2: 2, 3: 3, 4: 5} array index as key

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4c98c-439a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4c98c-439a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?