From a278d370d4f0fb2489ed184bb068bec4757db1a1 Mon Sep 17 00:00:00 2001 From: James Prevett Date: Tue, 1 Oct 2024 11:20:10 -0500 Subject: [PATCH] Added `public` access modifer to bare `constructor`s --- src/IndexedDB.ts | 2 +- src/Storage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IndexedDB.ts b/src/IndexedDB.ts index a1889dd..afa4be6 100644 --- a/src/IndexedDB.ts +++ b/src/IndexedDB.ts @@ -20,7 +20,7 @@ function wrap(request: IDBRequest): Promise { export class IndexedDBTransaction extends AsyncTransaction { private _idb: IDBObjectStore; - constructor( + public constructor( public tx: IDBTransaction, public store: IndexedDBStore ) { diff --git a/src/Storage.ts b/src/Storage.ts index 644d139..92faa7f 100644 --- a/src/Storage.ts +++ b/src/Storage.ts @@ -9,7 +9,7 @@ export class WebStorageStore implements Store, SimpleSyncStore { return WebStorage.name; } - constructor(protected _storage: Storage) {} + public constructor(protected _storage: Storage) {} public clear(): void { this._storage.clear();