@noir-lang/acvm_js 1.0.0-beta.3-3bc52e4.nightly → 1.0.0-beta.3-826b18a.nightly

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -1,30 +1,33 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export function executeCircuit(a: number, b: number, c: number, d: number): number;
5
- export function executeCircuitWithReturnWitness(a: number, b: number, c: number, d: number): number;
6
- export function executeProgram(a: number, b: number, c: number, d: number): number;
7
- export function buildInfo(): number;
8
- export function getReturnWitness(a: number, b: number, c: number, d: number): void;
9
- export function getPublicParametersWitness(a: number, b: number, c: number, d: number): void;
10
- export function getPublicWitness(a: number, b: number, c: number, d: number): void;
11
- export function and(a: number, b: number): number;
12
- export function xor(a: number, b: number): number;
13
- export function sha256_compression(a: number, b: number, c: number, d: number, e: number): void;
14
- export function blake2s256(a: number, b: number, c: number): void;
15
- export function ecdsa_secp256k1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
16
- export function ecdsa_secp256r1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
17
- export function compressWitness(a: number, b: number): void;
18
- export function decompressWitness(a: number, b: number, c: number): void;
19
- export function compressWitnessStack(a: number, b: number): void;
20
- export function decompressWitnessStack(a: number, b: number, c: number): void;
21
- export function initLogLevel(a: number, b: number, c: number): void;
22
- export function __wbindgen_malloc(a: number): number;
23
- export function __wbindgen_realloc(a: number, b: number, c: number): number;
4
+ export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
5
+ export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
6
+ export const executeProgram: (a: number, b: number, c: any, d: any) => any;
7
+ export const initLogLevel: (a: number, b: number) => [number, number];
8
+ export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
9
+ export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
10
+ export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
11
+ export const buildInfo: () => any;
12
+ export const and: (a: any, b: any) => any;
13
+ export const xor: (a: any, b: any) => any;
14
+ export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
15
+ export const blake2s256: (a: number, b: number) => [number, number];
16
+ export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
17
+ export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
18
+ export const compressWitness: (a: any) => [number, number, number, number];
19
+ export const decompressWitness: (a: number, b: number) => [number, number, number];
20
+ export const compressWitnessStack: (a: any) => [number, number, number, number];
21
+ export const decompressWitnessStack: (a: number, b: number) => [number, number, number];
22
+ export const __wbindgen_exn_store: (a: number) => void;
23
+ export const __externref_table_alloc: () => number;
24
24
  export const __wbindgen_export_2: WebAssembly.Table;
25
- export function wasm_bindgen__convert__closures__invoke1_mut__hec5660d9489c77a2(a: number, b: number, c: number): void;
26
- export function __wbindgen_add_to_stack_pointer(a: number): number;
27
- export function __wbindgen_free(a: number, b: number): void;
28
- export function wasm_bindgen__convert__closures__invoke3_mut__h083a66e5b0ae3ce9(a: number, b: number, c: number, d: number, e: number): void;
29
- export function __wbindgen_exn_store(a: number): void;
30
- export function wasm_bindgen__convert__closures__invoke2_mut__h7636f3796134b93b(a: number, b: number, c: number, d: number): void;
25
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
26
+ export const __wbindgen_malloc: (a: number, b: number) => number;
27
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
28
+ export const __wbindgen_export_6: WebAssembly.Table;
29
+ export const __externref_table_dealloc: (a: number) => void;
30
+ export const closure269_externref_shim: (a: number, b: number, c: any) => void;
31
+ export const closure834_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
+ export const closure838_externref_shim: (a: number, b: number, c: any, d: any) => void;
33
+ export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noir-lang/acvm_js",
3
- "version": "1.0.0-beta.3-3bc52e4.nightly",
3
+ "version": "1.0.0-beta.3-826b18a.nightly",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/web/acvm_js.d.ts CHANGED
@@ -1,151 +1,143 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Executes an ACIR circuit to generate the solved witness from the initial witness.
5
- *
6
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
7
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
8
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
9
- * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
10
- */
4
+ * Executes an ACIR circuit to generate the solved witness from the initial witness.
5
+ *
6
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
7
+ * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
8
+ * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
9
+ * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
10
+ */
11
11
  export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessMap>;
12
12
  /**
13
- * Executes an ACIR circuit to generate the solved witness from the initial witness.
14
- * This method also extracts the public return values from the solved witness into its own return witness.
15
- *
16
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
17
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
18
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
19
- * @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
20
- */
13
+ * Executes an ACIR circuit to generate the solved witness from the initial witness.
14
+ * This method also extracts the public return values from the solved witness into its own return witness.
15
+ *
16
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
17
+ * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
18
+ * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
19
+ * @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
20
+ */
21
21
  export function executeCircuitWithReturnWitness(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<SolvedAndReturnWitness>;
22
22
  /**
23
- * Executes an ACIR circuit to generate the solved witness from the initial witness.
24
- *
25
- * @param {Uint8Array} program - A serialized representation of an ACIR program
26
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
27
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
28
- * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
29
- */
23
+ * Executes an ACIR circuit to generate the solved witness from the initial witness.
24
+ *
25
+ * @param {Uint8Array} program - A serialized representation of an ACIR program
26
+ * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
27
+ * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
28
+ * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
29
+ */
30
30
  export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
31
31
  /**
32
- * Returns the `BuildInfo` object containing information about how the installed package was built.
33
- * @returns {BuildInfo} - Information on how the installed package was built.
34
- */
35
- export function buildInfo(): BuildInfo;
32
+ * Sets the package's logging level.
33
+ *
34
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
35
+ */
36
+ export function initLogLevel(filter: string): void;
36
37
  /**
37
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
38
- *
39
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
40
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
41
- * @returns {WitnessMap} A witness map containing the circuit's return values.
42
- * @param {Uint8Array} program
43
- * @param {WitnessMap} witness_map
44
- * @returns {WitnessMap}
45
- */
38
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
39
+ *
40
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
41
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
42
+ * @returns {WitnessMap} A witness map containing the circuit's return values.
43
+ */
46
44
  export function getReturnWitness(program: Uint8Array, witness_map: WitnessMap): WitnessMap;
47
45
  /**
48
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
49
- *
50
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
51
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
52
- * @returns {WitnessMap} A witness map containing the circuit's public parameters.
53
- * @param {Uint8Array} program
54
- * @param {WitnessMap} solved_witness
55
- * @returns {WitnessMap}
56
- */
46
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
47
+ *
48
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
49
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
50
+ * @returns {WitnessMap} A witness map containing the circuit's public parameters.
51
+ */
57
52
  export function getPublicParametersWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
58
53
  /**
59
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
60
- *
61
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
62
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
63
- * @returns {WitnessMap} A witness map containing the circuit's public inputs.
64
- * @param {Uint8Array} program
65
- * @param {WitnessMap} solved_witness
66
- * @returns {WitnessMap}
67
- */
54
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
55
+ *
56
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
57
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
58
+ * @returns {WitnessMap} A witness map containing the circuit's public inputs.
59
+ */
68
60
  export function getPublicWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
69
61
  /**
70
- * Performs a bitwise AND operation between `lhs` and `rhs`
71
- * @param {string} lhs
72
- * @param {string} rhs
73
- * @returns {string}
74
- */
62
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
63
+ * @returns {BuildInfo} - Information on how the installed package was built.
64
+ */
65
+ export function buildInfo(): BuildInfo;
66
+ /**
67
+ * Performs a bitwise AND operation between `lhs` and `rhs`
68
+ */
75
69
  export function and(lhs: string, rhs: string): string;
76
70
  /**
77
- * Performs a bitwise XOR operation between `lhs` and `rhs`
78
- * @param {string} lhs
79
- * @param {string} rhs
80
- * @returns {string}
81
- */
71
+ * Performs a bitwise XOR operation between `lhs` and `rhs`
72
+ */
82
73
  export function xor(lhs: string, rhs: string): string;
83
74
  /**
84
- * Sha256 compression function
85
- * @param {Uint32Array} inputs
86
- * @param {Uint32Array} state
87
- * @returns {Uint32Array}
88
- */
75
+ * Sha256 compression function
76
+ */
89
77
  export function sha256_compression(inputs: Uint32Array, state: Uint32Array): Uint32Array;
90
78
  /**
91
- * Calculates the Blake2s256 hash of the input bytes
92
- * @param {Uint8Array} inputs
93
- * @returns {Uint8Array}
94
- */
79
+ * Calculates the Blake2s256 hash of the input bytes
80
+ */
95
81
  export function blake2s256(inputs: Uint8Array): Uint8Array;
96
82
  /**
97
- * Verifies a ECDSA signature over the secp256k1 curve.
98
- * @param {Uint8Array} hashed_msg
99
- * @param {Uint8Array} public_key_x_bytes
100
- * @param {Uint8Array} public_key_y_bytes
101
- * @param {Uint8Array} signature
102
- * @returns {boolean}
103
- */
83
+ * Verifies a ECDSA signature over the secp256k1 curve.
84
+ */
104
85
  export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
105
86
  /**
106
- * Verifies a ECDSA signature over the secp256r1 curve.
107
- * @param {Uint8Array} hashed_msg
108
- * @param {Uint8Array} public_key_x_bytes
109
- * @param {Uint8Array} public_key_y_bytes
110
- * @param {Uint8Array} signature
111
- * @returns {boolean}
112
- */
87
+ * Verifies a ECDSA signature over the secp256r1 curve.
88
+ */
113
89
  export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
114
90
  /**
115
- * Compresses a `WitnessMap` into the binary format outputted by Nargo.
116
- *
117
- * @param {WitnessMap} witness_map - A witness map.
118
- * @returns {Uint8Array} A compressed witness map
119
- */
91
+ * Compresses a `WitnessMap` into the binary format outputted by Nargo.
92
+ *
93
+ * @param {WitnessMap} witness_map - A witness map.
94
+ * @returns {Uint8Array} A compressed witness map
95
+ */
120
96
  export function compressWitness(witness_map: WitnessMap): Uint8Array;
121
97
  /**
122
- * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
123
- * This should be used to only fetch the witness map for the main function.
124
- *
125
- * @param {Uint8Array} compressed_witness - A compressed witness.
126
- * @returns {WitnessMap} The decompressed witness map.
127
- */
98
+ * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
99
+ * This should be used to only fetch the witness map for the main function.
100
+ *
101
+ * @param {Uint8Array} compressed_witness - A compressed witness.
102
+ * @returns {WitnessMap} The decompressed witness map.
103
+ */
128
104
  export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
129
105
  /**
130
- * Compresses a `WitnessStack` into the binary format outputted by Nargo.
131
- *
132
- * @param {WitnessStack} witness_stack - A witness stack.
133
- * @returns {Uint8Array} A compressed witness stack
134
- */
106
+ * Compresses a `WitnessStack` into the binary format outputted by Nargo.
107
+ *
108
+ * @param {WitnessStack} witness_stack - A witness stack.
109
+ * @returns {Uint8Array} A compressed witness stack
110
+ */
135
111
  export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
136
112
  /**
137
- * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
138
- *
139
- * @param {Uint8Array} compressed_witness - A compressed witness.
140
- * @returns {WitnessStack} The decompressed witness stack.
141
- */
113
+ * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
114
+ *
115
+ * @param {Uint8Array} compressed_witness - A compressed witness.
116
+ * @returns {WitnessStack} The decompressed witness stack.
117
+ */
142
118
  export function decompressWitnessStack(compressed_witness: Uint8Array): WitnessStack;
143
- /**
144
- * Sets the package's logging level.
145
- *
146
- * @param {LogLevel} level - The maximum level of logging to be emitted.
147
- */
148
- export function initLogLevel(filter: string): void;
119
+
120
+ export type RawAssertionPayload = {
121
+ selector: string;
122
+ data: string[];
123
+ };
124
+
125
+ export type ExecutionError = Error & {
126
+ callStack?: string[];
127
+ rawAssertionPayload?: RawAssertionPayload;
128
+ brilligFunctionId?: number;
129
+ };
130
+
131
+
132
+
133
+ export type StackItem = {
134
+ index: number;
135
+ witness: WitnessMap;
136
+ }
137
+
138
+ export type WitnessStack = Array<StackItem>;
139
+
140
+
149
141
 
150
142
  // Map from witness index to hex string value of witness.
151
143
  export type WitnessMap = Map<number, string>;
@@ -176,28 +168,6 @@ export type BuildInfo = {
176
168
 
177
169
 
178
170
 
179
- export type RawAssertionPayload = {
180
- selector: string;
181
- data: string[];
182
- };
183
-
184
- export type ExecutionError = Error & {
185
- callStack?: string[];
186
- rawAssertionPayload?: RawAssertionPayload;
187
- brilligFunctionId?: number;
188
- };
189
-
190
-
191
-
192
- export type StackItem = {
193
- index: number;
194
- witness: WitnessMap;
195
- }
196
-
197
- export type WitnessStack = Array<StackItem>;
198
-
199
-
200
-
201
171
  export type ForeignCallInput = string[]
202
172
  export type ForeignCallOutput = string | string[]
203
173
 
@@ -216,33 +186,36 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
216
186
 
217
187
  export interface InitOutput {
218
188
  readonly memory: WebAssembly.Memory;
219
- readonly executeCircuit: (a: number, b: number, c: number, d: number) => number;
220
- readonly executeCircuitWithReturnWitness: (a: number, b: number, c: number, d: number) => number;
221
- readonly executeProgram: (a: number, b: number, c: number, d: number) => number;
222
- readonly buildInfo: () => number;
223
- readonly getReturnWitness: (a: number, b: number, c: number, d: number) => void;
224
- readonly getPublicParametersWitness: (a: number, b: number, c: number, d: number) => void;
225
- readonly getPublicWitness: (a: number, b: number, c: number, d: number) => void;
226
- readonly and: (a: number, b: number) => number;
227
- readonly xor: (a: number, b: number) => number;
228
- readonly sha256_compression: (a: number, b: number, c: number, d: number, e: number) => void;
229
- readonly blake2s256: (a: number, b: number, c: number) => void;
189
+ readonly executeCircuit: (a: number, b: number, c: any, d: any) => any;
190
+ readonly executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
191
+ readonly executeProgram: (a: number, b: number, c: any, d: any) => any;
192
+ readonly initLogLevel: (a: number, b: number) => [number, number];
193
+ readonly getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
194
+ readonly getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
195
+ readonly getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
196
+ readonly buildInfo: () => any;
197
+ readonly and: (a: any, b: any) => any;
198
+ readonly xor: (a: any, b: any) => any;
199
+ readonly sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
200
+ readonly blake2s256: (a: number, b: number) => [number, number];
230
201
  readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
231
202
  readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
232
- readonly compressWitness: (a: number, b: number) => void;
233
- readonly decompressWitness: (a: number, b: number, c: number) => void;
234
- readonly compressWitnessStack: (a: number, b: number) => void;
235
- readonly decompressWitnessStack: (a: number, b: number, c: number) => void;
236
- readonly initLogLevel: (a: number, b: number, c: number) => void;
237
- readonly __wbindgen_malloc: (a: number) => number;
238
- readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
239
- readonly __wbindgen_export_2: WebAssembly.Table;
240
- readonly wasm_bindgen__convert__closures__invoke1_mut__hec5660d9489c77a2: (a: number, b: number, c: number) => void;
241
- readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
242
- readonly __wbindgen_free: (a: number, b: number) => void;
243
- readonly wasm_bindgen__convert__closures__invoke3_mut__h083a66e5b0ae3ce9: (a: number, b: number, c: number, d: number, e: number) => void;
203
+ readonly compressWitness: (a: any) => [number, number, number, number];
204
+ readonly decompressWitness: (a: number, b: number) => [number, number, number];
205
+ readonly compressWitnessStack: (a: any) => [number, number, number, number];
206
+ readonly decompressWitnessStack: (a: number, b: number) => [number, number, number];
244
207
  readonly __wbindgen_exn_store: (a: number) => void;
245
- readonly wasm_bindgen__convert__closures__invoke2_mut__h7636f3796134b93b: (a: number, b: number, c: number, d: number) => void;
208
+ readonly __externref_table_alloc: () => number;
209
+ readonly __wbindgen_export_2: WebAssembly.Table;
210
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
211
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
212
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
213
+ readonly __wbindgen_export_6: WebAssembly.Table;
214
+ readonly __externref_table_dealloc: (a: number) => void;
215
+ readonly closure269_externref_shim: (a: number, b: number, c: any) => void;
216
+ readonly closure834_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
217
+ readonly closure838_externref_shim: (a: number, b: number, c: any, d: any) => void;
218
+ readonly __wbindgen_start: () => void;
246
219
  }
247
220
 
248
221
  export type SyncInitInput = BufferSource | WebAssembly.Module;
@@ -250,18 +223,18 @@ export type SyncInitInput = BufferSource | WebAssembly.Module;
250
223
  * Instantiates the given `module`, which can either be bytes or
251
224
  * a precompiled `WebAssembly.Module`.
252
225
  *
253
- * @param {SyncInitInput} module
226
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
254
227
  *
255
228
  * @returns {InitOutput}
256
229
  */
257
- export function initSync(module: SyncInitInput): InitOutput;
230
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
258
231
 
259
232
  /**
260
233
  * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
261
234
  * for everything else, calls `WebAssembly.instantiate` directly.
262
235
  *
263
- * @param {InitInput | Promise<InitInput>} module_or_path
236
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
264
237
  *
265
238
  * @returns {Promise<InitOutput>}
266
239
  */
267
- export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
240
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;