Skip to content

Function: default() ​

default(module_or_path?): Promise<InitOutput>

Defined in: api/rust-fetch.d.ts:1035

If module_or_path is {RequestInfo} or {URL}, makes a request and for everything else, calls WebAssembly.instantiate directly.

Parameters ​

module_or_path? ​

{ module_or_path: InitInput | Promise<InitInput>; } | InitInput | Promise<InitInput>

Passing InitInput directly is deprecated.

Returns ​

Promise<InitOutput>

Released under the MIT or Apache-2.0 license.