On this page
Function: default()
default(
module_or_path
?):Promise
<InitOutput
>
If module_or_path
is {RequestInfo} or {URL}, makes a request and for everything else, calls WebAssembly.instantiate
directly.
Parameters
• module_or_path?: InitInput
| Promise
<InitInput
> | object
Passing InitInput
directly is deprecated.
Returns
Promise
<InitOutput
>
Defined in
@nimiq/core/types/wasm/web.d.ts:2507