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
First of all, thank you for the great work on Koffi !
Is there a way to export a Type from the koffi.struct constructor ?
constMyStruct=koffi.struct('MyStruct',{field1: 'uint8_t',field2: 'uint32_t',});// Would it be possible to export a TypeScript type for this structure?// Example:constmyObject: MyStruct.type={field1: 1,field2: 2}
and get for this example the following generated type
Maybe you can use koffi.introspect(MyStructType) on the type object returned by koffi.struct() and make some kind of dynamic TypeScript type from that?
Hello,
First of all, thank you for the great work on Koffi !
Is there a way to export a Type from the
koffi.struct
constructor ?and get for this example the following generated type
Thank you for your time and consideration !
The text was updated successfully, but these errors were encountered: