diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-03 13:00:48 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-03 13:01:05 +0530 |
commit | ffd2a62c3f7df94365980302fef3bc3376b48182 (patch) | |
tree | 270af6f16b4cc7f5da2afdba55c8bc9dbea5eca5 /packages/idb-bridge/src/backend-interface.ts | |
parent | aa481e42675fb7c4dcbbeec0ba1c61e1953b9596 (diff) | |
download | wallet-core-ffd2a62c3f7df94365980302fef3bc3376b48182.tar.xz |
modularize repo, use pnpm, improve typechecking
Diffstat (limited to 'packages/idb-bridge/src/backend-interface.ts')
-rw-r--r-- | packages/idb-bridge/src/backend-interface.ts | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/packages/idb-bridge/src/backend-interface.ts b/packages/idb-bridge/src/backend-interface.ts index bcb1e8a85..3617d21bc 100644 --- a/packages/idb-bridge/src/backend-interface.ts +++ b/packages/idb-bridge/src/backend-interface.ts @@ -22,7 +22,7 @@ import { KeyPath, BridgeIDBDatabaseInfo, } from "./util/types"; -import BridgeIDBKeyRange from "./BridgeIDBKeyRange"; +import { BridgeIDBKeyRange } from "./BridgeIDBKeyRange"; export interface ObjectStoreProperties { keyPath: KeyPath | null; @@ -76,7 +76,7 @@ export interface RecordGetRequest { * Last cursor position in terms of the index key. * Can only be specified if indexName is defined and * lastObjectStorePosition is defined. - * + * * Must either be undefined or within range. */ lastIndexPosition?: Key; @@ -87,7 +87,7 @@ export interface RecordGetRequest { /** * If specified, the index key of the results must be * greater or equal to advanceIndexKey. - * + * * Only applicable if indexName is specified. */ advanceIndexKey?: Key; @@ -144,7 +144,7 @@ export interface Backend { /** * Even though the standard interface for indexedDB doesn't require * the client to run deleteDatabase in a version transaction, there is - * implicitly one running. + * implicitly one running. */ deleteDatabase(btx: DatabaseTransaction, name: string): Promise<void>; @@ -152,9 +152,18 @@ export interface Backend { getSchema(db: DatabaseConnection): Schema; - renameIndex(btx: DatabaseTransaction, objectStoreName: string, oldName: string, newName: string): void; + renameIndex( + btx: DatabaseTransaction, + objectStoreName: string, + oldName: string, + newName: string, + ): void; - deleteIndex(btx: DatabaseTransaction, objectStoreName: string, indexName: string): void; + deleteIndex( + btx: DatabaseTransaction, + objectStoreName: string, + indexName: string, + ): void; rollback(btx: DatabaseTransaction): Promise<void>; |