typescript dictionary interface where key is undefined code example Example: TS define dictionary const dict: { [key: keyType]: valueType};