chore(ts): use source import extensions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { IndexedDBConfig, StorageBackend, StorageTransaction } from "../types.js";
|
||||
import type { IndexedDBConfig, StorageBackend, StorageTransaction } from "../types.ts";
|
||||
|
||||
/**
|
||||
* IndexedDB implementation of StorageBackend.
|
||||
@@ -6,8 +6,11 @@ import type { IndexedDBConfig, StorageBackend, StorageTransaction } from "../typ
|
||||
*/
|
||||
export class IndexedDBStorageBackend implements StorageBackend {
|
||||
private dbPromise: Promise<IDBDatabase> | null = null;
|
||||
private config: IndexedDBConfig;
|
||||
|
||||
constructor(private config: IndexedDBConfig) {}
|
||||
constructor(config: IndexedDBConfig) {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
private async getDB(): Promise<IDBDatabase> {
|
||||
if (!this.dbPromise) {
|
||||
|
||||
Reference in New Issue
Block a user