impero-com / typebinder

Exports TS definitions from Rust module
Other
20 stars 2 forks source link

Support for `EnumMap` #50

Open AlisCode opened 6 months ago

AlisCode commented 6 months ago

EnumMap is a crate that exposes an exhaustive hashmap equivalent (backed by an array)

The binding to TS would give a Record<K, V>, as opposed to a HashMap<K,V> which is typebound to a Partial<Record<K, V>>.