mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Merge pull request #1520 from darthtrevino/bugfix/1517_typings
Update init() typings
This commit is contained in:
commit
8ef820a54e
@ -922,7 +922,7 @@ impl<'a> Context<'a> {
|
||||
*\n\
|
||||
* @returns {{Promise<any>}}\n\
|
||||
*/\n\
|
||||
export function init \
|
||||
export default function init \
|
||||
(module_or_path: RequestInfo | BufferSource | WebAssembly.Module{}): Promise<any>;
|
||||
",
|
||||
memory_doc, memory_param
|
||||
|
@ -1,3 +1,3 @@
|
||||
import * as wbg from '../../pkg/web/typescript_tests';
|
||||
import initialize from "../../pkg/web/typescript_tests";
|
||||
|
||||
const init: Promise<any> = wbg.init('.');
|
||||
const init: Promise<any> = initialize(".");
|
||||
|
Loading…
x
Reference in New Issue
Block a user