-
-
Notifications
You must be signed in to change notification settings - Fork 670
fix semicolon after interface + improve import object definition #1175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you so much @MaxGraey ! |
): Promise<ResultObject & { exports: ASUtil & T }>; | ||
|
||
/** Synchronously instantiates an AssemblyScript module from a WebAssembly.Module or binary buffer. */ | ||
export declare function instantiateSync<T extends {}>( | ||
source: WebAssembly.Module | BufferSource, | ||
imports?: ImportsObject | ||
imports?: Imports | ||
): ResultObject & { exports: ASUtil & T }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not directly related to this PR, but according to MDN there's also a slight variance here: If a WebAssembly.Module
is provided, this API returns just a WebAssembly.Instance
, otherwise a ResultObject
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about this. but if you see this is reasonable we could do thus in separate pr
No description provided.