TypeScript hashmap/dictionary interface
165
I'm trying to implement a hashmap/dictionary interface. So far I have:
export interface IHash {
[details: string] : string;
}
I'm having some trouble understanding what exactly this syntax means. If I were to do var x : IHash = {}; how would I go about adding/accessing the data?