Is it possible to declare a hashtable which includes keys with a dash in TypeScript?
Here's the code i've tried:
export interface ImapMessageHeader {
'mime-version': string[];
received: string[];
[index: string]: string[];
}
From which i receive the following error:
Expected identifier in property declaration
The last declaration defining the index type allows me to call any string key, but i can't explicitly define the ones i want to use.
Thanks!