init#
The package's default export. It loads nothing and resolves immediately. A Project works right after import, with or without init().
Signature#
Async: the only export of the package that returns a Promise.
Parameters#
| Name | Type | Description |
|---|---|---|
input |
unknown |
Optional. Ignored. |
Returns#
A Promise that resolves to undefined.
Errors#
None. The promise always resolves.
Variants#
CommonJS#
In the CJS build, init is the default property of the module object. The named exports stay direct.
const = ;
.;
Example#
;
Related#
Project- works without callinginit- Switch from the WASM package - what
init()anddispose()do in this package - Quick start - installing and importing the package