-
-
Notifications
You must be signed in to change notification settings - Fork 673
Description
I've been trying this project out for a few days, and I must say, usage wise I'm pretty confused.
First of all there's no NPM package for https://github.com/AssemblyScript/assemblyscript/tree/master/lib/loader available as shown in the docs that there should be.
assemblyscript/lib/loader/index.d.ts
Line 48 in 671121b
export declare function instantiateStreaming<T extends {}>(response: Response, imports?: ImportsObject): Promise<ASUtil & T>; |
Should be
Promise<Response>
and not Response
.
assemblyscript/lib/loader/index.d.ts
Line 6 in 671121b
env: { |
Should be optional.
We need some examples, because I'm really confused on how some things should be done.
E.g using module.getString
and module.newString
, because when I try to log something from my AssemblyScript
file all it logs is a number which makes sense.
But what are the purpose of these two functions?
The docs definitely needs to be updated.