Skip to content

Commit 55ca25a

Browse files
Merge pull request #322 from swiftwasm/katei/async-dts
'async' modifier cannot be used in an ambient context.
2 parents 2989d8d + 5149b77 commit 55ca25a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: Plugins/PackageToJS/Templates/platforms/browser.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { InstantiateOptions, ModuleSource } from "../instantiate.js"
22

3-
export async function defaultBrowserSetup(options: {
3+
export function defaultBrowserSetup(options: {
44
module: ModuleSource,
55
/* #if IS_WASI */
66
args?: string[],

Diff for: Plugins/PackageToJS/Templates/platforms/node.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { InstantiateOptions } from "../instantiate.js"
22
import type { Worker } from "node:worker_threads"
33

4-
export async function defaultNodeSetup(options: {
4+
export function defaultNodeSetup(options: {
55
/* #if IS_WASI */
66
args?: string[],
77
/* #endif */

Diff for: Plugins/PackageToJS/Templates/test.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { InstantiateOptions, instantiate } from "./instantiate";
22

3-
export async function testBrowser(
3+
export function testBrowser(
44
options: {
55
preludeScript?: string,
66
args?: string[],
77
}
88
): Promise<number>
99

10-
export async function testBrowserInPage(
10+
export function testBrowserInPage(
1111
options: InstantiateOptions
1212
): ReturnType<typeof instantiate>

0 commit comments

Comments
 (0)