Is it possible to declare a hash table that contains dash keys in TypeScript?
Here is the code I tried:
export interface ImapMessageHeader { 'mime-version': string[]; received: string[]; [index: string]: string[]; }
From which I get the following error:
Expected identifier in property declaration
The last declaration defining the type of index allows me to call any string key, but I cannot explicitly determine which ones I want to use.
Thanks!
source share