Merge pull request #1520 from darthtrevino/bugfix/1517_typings

Update init() typings
This commit is contained in:
Alex Crichton 2019-05-09 12:05:25 -07:00 committed by GitHub
commit 8ef820a54e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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(".");