From cfac30c67afd2dae948a3d66873b45f0299ba5ee Mon Sep 17 00:00:00 2001 From: qucumbah <39967396+qucumbah@users.noreply.github.com> Date: Thu, 20 Oct 2022 17:44:32 +0300 Subject: [PATCH 1/4] remove constructor from IDB interface --- index.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index e897421..b42ce83 100644 --- a/index.d.ts +++ b/index.d.ts @@ -259,7 +259,6 @@ 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 From e324940bc44439ca3ce26f4b7a6544c072916837 Mon Sep 17 00:00:00 2001 From: qucumbah <39967396+qucumbah@users.noreply.github.com> Date: Thu, 20 Oct 2022 19:52:19 +0300 Subject: [PATCH 2/4] fix method signatures of IDB interface --- index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index b42ce83..f098fc7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -259,10 +259,10 @@ declare module '@isomorphic-git/lightning-fs' { db?: FS.IDB } export interface IDB { - saveSuperblock(sb: Uint8Array): TypeOrPromise - loadSuperblock(): TypeOrPromise - loadFile(inode: number): TypeOrPromise - writeFile(inode: number, data: Uint8Array): TypeOrPromise + saveSuperblock(sb: FS.SuperBlock): TypeOrPromise + loadSuperblock(): TypeOrPromise + loadFile(inode: number): TypeOrPromise + writeFile(inode: number, data: Uint8Array | string): TypeOrPromise wipe(): TypeOrPromise close(): TypeOrPromise } From da1c4c14588b3e504ffd98c382b360c6bf7c2c94 Mon Sep 17 00:00:00 2001 From: qucumbah <39967396+qucumbah@users.noreply.github.com> Date: Thu, 20 Oct 2022 20:01:47 +0300 Subject: [PATCH 3/4] fix readFile method name --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index f098fc7..23b3eea 100644 --- a/index.d.ts +++ b/index.d.ts @@ -261,7 +261,7 @@ declare module '@isomorphic-git/lightning-fs' { export interface IDB { saveSuperblock(sb: FS.SuperBlock): TypeOrPromise loadSuperblock(): TypeOrPromise - loadFile(inode: number): TypeOrPromise + readFile(inode: number): TypeOrPromise writeFile(inode: number, data: Uint8Array | string): TypeOrPromise wipe(): TypeOrPromise close(): TypeOrPromise From 84f3a8b22c62c68ae6e990fae1250c807dac903f Mon Sep 17 00:00:00 2001 From: qucumbah <39967396+qucumbah@users.noreply.github.com> Date: Thu, 20 Oct 2022 20:08:04 +0300 Subject: [PATCH 4/4] fix readFile, writeFile types --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 23b3eea..c09e8ee 100644 --- a/index.d.ts +++ b/index.d.ts @@ -261,8 +261,8 @@ declare module '@isomorphic-git/lightning-fs' { export interface IDB { saveSuperblock(sb: FS.SuperBlock): TypeOrPromise loadSuperblock(): TypeOrPromise - readFile(inode: number): TypeOrPromise - writeFile(inode: number, data: Uint8Array | string): TypeOrPromise + readFile(inode: number): TypeOrPromise + writeFile(inode: number, data: Uint8Array): TypeOrPromise wipe(): TypeOrPromise close(): TypeOrPromise }