as-bind icon indicating copy to clipboard operation
as-bind copied to clipboard

feature request: generate typescript definiton for module

Open mathe42 opened this issue 4 years ago • 3 comments

When using AsseblyScript just with the Loader I can have full type support as explained here: https://www.assemblyscript.org/loader.html#typescript-definitions

I want the same when useing as-bind

Or is there a easy way to do this that mised?

mathe42 avatar Sep 24 '21 20:09 mathe42

Hello! Thank you for the issue! 😄

So, unfortunately, as of right now it's not supported, and it would be a bit of work to have it supported as well. I know we have a really awesome JSON file that as-bind uses to determine types, so I assume we could generate some definitions from that. But, I wouldn't have the time to implement that any time soon.

I'd be happy to review any PRs though if you have the time! Thanks! 😄 🎉

torch2424 avatar Sep 24 '21 21:09 torch2424

If you point me to where to start I will have a look at it.

[EDIT] sorry - wrong button

mathe42 avatar Sep 24 '21 21:09 mathe42

Never mind I found where to start. Will open a Draft PR in the next days.

mathe42 avatar Sep 24 '21 21:09 mathe42