cld3-asm
Version:
WebAssembly based Javascript bindings for google compact language detector 3
16 lines • 742 B
TypeScript
import { CldFactory } from './cldFactory';
/**
* Load, initialize wasm binary to use actual cld wasm instances.
*
* @param [InitOptions] Options to initialize cld3 wasm binary.
* @param {number} [InitOptions.timeout] - timeout to wait wasm binary compilation & load.
* @param {string | object} [InitOptions.locateBinary] - custom resolution logic for wasm binary. (not supported)
* It could be either remote endpoint url, or loader-returned object for bundler. Check examples/browser_* for references.
*
* @returns {() => Promise<CldFactory>} Function to load module
*/
declare const loadModule: (initOptions?: Partial<{
timeout: number;
}>) => Promise<CldFactory>;
export { loadModule };
//# sourceMappingURL=loadModule.d.ts.map