aboutsummaryrefslogtreecommitdiff
path: root/static/tinysearch_engine.d.ts
diff options
context:
space:
mode:
authorJieiku2022-09-20 17:34:19 -0700
committerJieiku2022-09-20 17:34:19 -0700
commit864a89104bd444fbebb9dcbe3ed853c28f8b21e7 (patch)
treee9bd0165ac208d4b5ebe7ee2223c218f6ad78ed6 /static/tinysearch_engine.d.ts
parent7d691159df6e0f64129d3c11f4e8026dca3a72d1 (diff)
downloadabridge-864a89104bd444fbebb9dcbe3ed853c28f8b21e7.tar.gz
abridge-864a89104bd444fbebb9dcbe3ed853c28f8b21e7.tar.bz2
abridge-864a89104bd444fbebb9dcbe3ed853c28f8b21e7.zip
Fix index generation when all pages in a section are drafts, closes #93
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