red-blox / zap

A lightning fast networking solution for roblox.
https://zap.redblox.dev
MIT License
89 stars 14 forks source link

(typescript) Use `Map<K, V>` to allow any key type #111

Closed vnnh closed 2 months ago

vnnh commented 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.