Passing C enum to function and read in TypeScript
First of all I am not a trained software developper, so please forgive me if I am missing some basics. I am trying to build a wrapper around a dynamic library to IEC 61850 communication.
On the the exposed functions of that library is
To be able to use the library I need to

BR,
Jakob
On the the exposed functions of that library is
IedConnection_connect(..., IedClientError error, ...) , where IedClientError is a enum with 23 entries. To be able to use the library I need to
- create the enumeration in TypeScript and change it to a type array? to be able to pass it down
- but then I also need to read the changed error again in TypeScript
BR,
Jakob