how to pass a dict to a function in the dict ts code example Example: TS define dictionary const dict: { [key: keyType]: valueType};