Skip to content

Commit 684c3f1

Browse files
committed
fix: add types to SAHPoolUtil for VFS pause functions
1 parent 2d29fa6 commit 684c3f1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

index.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,17 @@ type SAHPoolUtil = {
14121412
* currently in use, e.g. by an sqlite3 db.
14131413
*/
14141414
wipeFiles: () => Promise<void>;
1415+
1416+
/** Unregister this VFS and release file access handles, without clearing
1417+
* files. The database must be closed before calling this. */
1418+
pauseVfs: () => SAHPoolUtil;
1419+
1420+
/** Returns `true` if this VFS pool is paused */
1421+
isPaused: () => boolean;
1422+
1423+
/** Re-register this VFS and re-acquire file access handles. Any previously
1424+
* open databases will have to be re-opened after calling this. */
1425+
unpauseVfs: () => Promise<SAHPoolUtil>;
14151426
};
14161427

14171428
/** Exception class for reporting WASM-side allocation errors. */

0 commit comments

Comments
 (0)