From 452a6b23098682f914da491acb19a23bb8ab1a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chu=C3=A1nq=C3=AD=20Sun?= <1895289+chuanqisun@users.noreply.github.com> Date: Sat, 15 Jun 2024 15:48:40 -0700 Subject: [PATCH] Fix IDB interface --- index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index e897421..eaf5cb3 100644 --- a/index.d.ts +++ b/index.d.ts @@ -259,10 +259,9 @@ declare module '@isomorphic-git/lightning-fs' { db?: FS.IDB } export interface IDB { - constructor(dbname: string, storename: string): IDB saveSuperblock(sb: Uint8Array): TypeOrPromise loadSuperblock(): TypeOrPromise - loadFile(inode: number): TypeOrPromise + readFile(inode: number): TypeOrPromise writeFile(inode: number, data: Uint8Array): TypeOrPromise wipe(): TypeOrPromise close(): TypeOrPromise