have string as key in dictionary typescript code example Example: TS define dictionary const dict: { [key: keyType]: valueType};