interface ChatRoom {
[key: number]: array;
}
Is there a way to declare 2dimensional array like a snippet I've provided? The key must be number and the value must be array. Is there any other way to declare that array? Thanks in advance.
type ChatRoom = any[][];
or
type ChatRoom = Array<Array<any>>;
Change any for your desired type.