Closed vnnh closed 2 months ago
Currently, the map type outputs { [index: K]: V }, which only allows for string | number | symbol key types. Using the Map<K, V> type would allow for other key types to be used, like Instances.
{ [index: K]: V }
string | number | symbol
Map<K, V>
Currently, the map type outputs
{ [index: K]: V }
, which only allows forstring | number | symbol
key types. Using theMap<K, V>
type would allow for other key types to be used, like Instances.