Record<K, V> typescript in purescript

How should I represent the typescript type Record<K, V> in Purescript?

It’s required that the javascript output represents the mentioned type, and I don’t mind too much what the purescript type is.

I’ve been looking through the purescript libs and nothing sticks out.
I checked out this too, which does what I need it to but I don’t have the data type.

1 Like

It seems this is what I was looking for: GitHub - purescript/purescript-foreign-object: Functions for working with homogeneous JavaScript objects

1 Like

Object V from the foreign-object lib is equivalent to TS’s Record<string, V>, so provided you aren’t concerned with non-string keys it should cover your needs.