Skip to content

Commit 925362e

Browse files
committed
feat(loadmodule): Change timeout option in loadModule to auto-destructure
1 parent 71c29af commit 925362e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/loadModule.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import { log } from './util/logger';
99
*
1010
* @param {environment} [ENVIRONMENT] For overriding running environment
1111
*
12-
* @param {initializeTimeout} [number] Custom timeout to pass for the initialization of the module
12+
* @param {timeout} [number] Custom timeout to pass for the initialization of the module
1313
*
1414
* @returns {Promise<HunspellFactory>} Factory function of cld to allow create instance of hunspell.
1515
*/
1616
const loadModule: (environment?: ENVIRONMENT) => Promise<HunspellFactory> = async (
1717
environment?: ENVIRONMENT,
18-
initializeTimeout?: number
18+
timeout?: number
1919
) => {
2020
log(`loadModule: loading hunspell module`);
2121

@@ -25,7 +25,7 @@ const loadModule: (environment?: ENVIRONMENT) => Promise<HunspellFactory> = asyn
2525
(runtime: HunspellAsmModule, env: ENVIRONMENT) => hunspellLoader(runtime, env),
2626
runtimeModule,
2727
undefined,
28-
{ timeout: initializeTimeout }
28+
{ timeout }
2929
);
3030

3131
return moduleLoader(environment);

0 commit comments

Comments
 (0)