Skip to content

Commit

Permalink
updating ttype definintions to add IDBBatchAtomicVFS example.
Browse files Browse the repository at this point in the history
  • Loading branch information
thegoldenmule committed Oct 16, 2024
1 parent bfbbc6a commit fec2b6c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wa-sqlite",
"version": "1.0.3",
"version": "1.0.4",
"type": "module",
"main": "src/sqlite-api.js",
"types": "src/types/index.d.ts",
Expand Down
15 changes: 15 additions & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1315,3 +1315,18 @@ declare module 'wa-sqlite/src/examples/tag.js' {
*/
export function tag(sqlite3: any, db: number): (arg0: TemplateStringsArray, ...args: any[]) => Promise<object[]>;
}

/** @ignore */
declare module 'wa-sqlite/src/examples/IDBBatchAtomicVFS.js' {
import * as VFS from "wa-sqlite/src/VFS.js";

export interface VFSOptions {
durability?: "default" | "strict" | "relaxed";
purge?: "deferred" | "manual";
purgeAtLeast?: number;
}

export class IDBBatchAtomicVFS extends VFS.Base {
constructor(idbDatabaseName:string, options: VFSOptions)
}
}

0 comments on commit fec2b6c

Please sign in to comment.