From 684c3f1e2cf1d015f8bde8a17cd79dc84477d496 Mon Sep 17 00:00:00 2001 From: Zachary Hamm Date: Fri, 18 Jul 2025 16:32:04 -0500 Subject: [PATCH] fix: add types to SAHPoolUtil for VFS pause functions --- index.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.d.ts b/index.d.ts index 2c16060..9d0a3a2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1412,6 +1412,17 @@ type SAHPoolUtil = { * currently in use, e.g. by an sqlite3 db. */ wipeFiles: () => Promise; + + /** Unregister this VFS and release file access handles, without clearing + * files. The database must be closed before calling this. */ + pauseVfs: () => SAHPoolUtil; + + /** Returns `true` if this VFS pool is paused */ + isPaused: () => boolean; + + /** Re-register this VFS and re-acquire file access handles. Any previously + * open databases will have to be re-opened after calling this. */ + unpauseVfs: () => Promise; }; /** Exception class for reporting WASM-side allocation errors. */