Yep! This AssemblyScript primer is outdated in very little ways. Instead, use ASUtil & T. The generic part used to be the exported wasm API that you expect the module to return. Now it's just a plain interface.
That's great! Make sure to speak up when you have problems. Assemblyscript is a burgeoning platform and things don't always work! You can also check out docs.assemblyscript.org/ for lots of documentation.
Good luck!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Josh, thanks for the interesting read!
Inside index.ts, I'm getting the error 'Type "ASUtil" is not generic'. It's the same code you have, any idea why?
Yep! This AssemblyScript primer is outdated in very little ways. Instead, use
ASUtil & T
. The generic part used to be the exported wasm API that you expect the module to return. Now it's just a plain interface.Cheers Josh! Managed to import the AS loader and run some basic tests with __allocString and __getString. Works like a charm!
That's great! Make sure to speak up when you have problems. Assemblyscript is a burgeoning platform and things don't always work! You can also check out docs.assemblyscript.org/ for lots of documentation.
Good luck!