You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have examples of working with any List<T> or Data types.
Right now I don't understand how to correctly assign values to List keys from the generated schema.
The only way I've been able to work with Lists has been to use _private methods
constmessage=newcapnp.constrequestData=message.initRoot(RequestData);constheaders=requestData._initHeaders(parsedHeaders.length);parsedHeaders.forEach(({ key, value },i)=>{consth=headers.get(i);h.key=key;h.value=value;});
But trying the following leads to errors both from typescripts due to type mismatch and also at runtime TypeError: Cannot read properties of undefined (reading 'isWordZero'):
requestData.headers=parsedHeaders.map(({ key, value })=>{return{ key, value };});
Also, how to deserialize string each values from the List of structs?
The text was updated successfully, but these errors were encountered:
It would be nice to have examples of working with any
List<T>
orData
types.Right now I don't understand how to correctly assign values to List keys from the generated schema.
The only way I've been able to work with
Lists
has been to use_private
methodsBut trying the following leads to errors both from typescripts due to type mismatch and also at runtime
TypeError: Cannot read properties of undefined (reading 'isWordZero')
:Also, how to deserialize string each values from the
List
ofstructs
?The text was updated successfully, but these errors were encountered: