[quickjs-emscripten](../README.md) / [Exports](../modules.md) / JSModuleLoaderAsync

# Interface: JSModuleLoaderAsync

## Callable

### JSModuleLoaderAsync

▸ **JSModuleLoaderAsync**(`moduleName`, `context`): [`JSModuleLoadResult`](../modules.md#jsmoduleloadresult) \| `Promise`<[`JSModuleLoadResult`](../modules.md#jsmoduleloadresult)\>

Load module (async)

#### Parameters

| Name | Type |
| :------ | :------ |
| `moduleName` | `string` |
| `context` | [`QuickJSAsyncContext`](../classes/QuickJSAsyncContext.md) |

#### Returns

[`JSModuleLoadResult`](../modules.md#jsmoduleloadresult) \| `Promise`<[`JSModuleLoadResult`](../modules.md#jsmoduleloadresult)\>

#### Defined in

[ts/types.ts:76](https://github.com/justjake/quickjs-emscripten/blob/main/ts/types.ts#L76)
