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