torch2424 / as-bind

Isomorphic library to handle passing high-level data structures between AssemblyScript and JavaScript 🤝🚀
https://torch2424.github.io/as-bind/
MIT License
245 stars 23 forks source link

WIP: feat: type gen #98 #99

Closed mathe42 closed 3 years ago

mathe42 commented 3 years ago

Basic idea. Code is not final!

I currently just write the config json file to disk and have a node script to generate the types. This process will be integrated in the transform step.

mathe42 commented 3 years ago

I looked at the internals a lot and learned a lot so I will properly rewrite most of it. I can get more information: Optional + Rest parameter; name of parameter. (This is why I did #100 to learn how this works :D.)

mathe42 commented 3 years ago

closed in favor of #101