Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating type definitions to add IDBBatchAtomicVFS example #220

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
rhashimoto marked this conversation as resolved.
Show resolved Hide resolved
durability?: "default" | "strict" | "relaxed";
purge?: "deferred" | "manual";
purgeAtLeast?: number;
}

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