@learncard/didkit-plugin 1.1.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -221,24 +221,26 @@ export interface InitOutput {
221
221
  readonly contextLoader: (a: number, b: number) => number;
222
222
  readonly didkit_error_message: () => number;
223
223
  readonly didkit_error_code: () => number;
224
- readonly __wbindgen_malloc: (a: number) => number;
225
- readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
224
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
225
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
226
226
  readonly __wbindgen_export_2: WebAssembly.Table;
227
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd6ecfa201cc6ac51: (a: number, b: number, c: number) => void;
227
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae32635367f5810e: (a: number, b: number, c: number) => void;
228
228
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
229
- readonly __wbindgen_free: (a: number, b: number) => void;
229
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
230
230
  readonly __wbindgen_exn_store: (a: number) => void;
231
- readonly wasm_bindgen__convert__closures__invoke2_mut__h361d90515cfd8001: (a: number, b: number, c: number, d: number) => void;
231
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h6e6bc1a8c3634b3b: (a: number, b: number, c: number, d: number) => void;
232
232
  }
233
233
 
234
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
234
235
  /**
235
- * Synchronously compiles the given `bytes` and instantiates the WebAssembly module.
236
+ * Instantiates the given `module`, which can either be bytes or
237
+ * a precompiled `WebAssembly.Module`.
236
238
  *
237
- * @param {BufferSource} bytes
239
+ * @param {SyncInitInput} module
238
240
  *
239
241
  * @returns {InitOutput}
240
242
  */
241
- export function initSync(bytes: BufferSource): InitOutput;
243
+ export function initSync(module: SyncInitInput): InitOutput;
242
244
 
243
245
  /**
244
246
  * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
@@ -248,4 +250,4 @@ export function initSync(bytes: BufferSource): InitOutput;
248
250
  *
249
251
  * @returns {Promise<InitOutput>}
250
252
  */
251
- export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
253
+ export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;