typescript define dictionary type code example Example: typescript dictionary typing const dict: { [key: keyType]: valueType};