how to assign a dictionary to a array in typescript code example Example: typescript dictionary typing const dict: { [key: keyType]: valueType};