Creating a Map of type damlTypes.Map<string, damlTypes.Party>
- Joao_FreitasOP
Hi everyone

on my project i am trying to create a Map of the following type damlTypes.Map<string, damlTypes.Party> (imported from the @daml/types lib).
But it keeps throwing me an error pointing that the " Property ‘entriesArray’ is missing"
I am doing it this way:
const myMap: damlTypes.Map<string, damlTypes.Party> = new Map(), myMap.set("","");any help would be appreciated on how to create MapImpl (MapImpl |) on the FE.
Thanks

- Stephen 1
const myMap: damlTypes.Map<string, damlTypes.Party> = new Map(),In this line of code,
Mapis a totally unrelated type todamlTypes.Map. That error takes the form of pointing out that your property sets don’t match up correctly, asdamlTypes.Mapis a purely structural type.MapImplis not exported. In the public exports of@daml/typesyou’ll find the emptyMap function; this is a good starting point. - Joao_Freitas
Thank Stephen, yes on the meanwhile i opened the daml/types lib and found that.
const empty = damlTypes.emptyMap<string, damlTypes.Party>()solved my problem and then added the needed info with the .set() method.
Thanks
