aboutsummaryrefslogtreecommitdiff
path: root/static/tinysearch_engine.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'static/tinysearch_engine.d.ts')
-rw-r--r--static/tinysearch_engine.d.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/static/tinysearch_engine.d.ts b/static/tinysearch_engine.d.ts
index e1f9bb2..d1b37dd 100644
--- a/static/tinysearch_engine.d.ts
+++ b/static/tinysearch_engine.d.ts
@@ -16,14 +16,16 @@ export interface InitOutput {
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
}
+export type SyncInitInput = BufferSource | WebAssembly.Module;
/**
-* Synchronously compiles the given `bytes` and instantiates the WebAssembly module.
+* Instantiates the given `module`, which can either be bytes or
+* a precompiled `WebAssembly.Module`.
*
-* @param {BufferSource} bytes
+* @param {SyncInitInput} module
*
* @returns {InitOutput}
*/
-export function initSync(bytes: BufferSource): InitOutput;
+export function initSync(module: SyncInitInput): InitOutput;
/**
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and