From 864a89104bd444fbebb9dcbe3ed853c28f8b21e7 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Tue, 20 Sep 2022 17:34:19 -0700 Subject: Fix index generation when all pages in a section are drafts, closes #93 --- static/tinysearch_engine.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'static/tinysearch_engine.d.ts') 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 -- cgit v1.3.1