Skip to content

Commit

Permalink
Added public access modifer to bare constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Oct 1, 2024
1 parent 6212389 commit a278d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IndexedDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function wrap<T>(request: IDBRequest<T>): Promise<T> {
export class IndexedDBTransaction extends AsyncTransaction<IndexedDBStore> {
private _idb: IDBObjectStore;

constructor(
public constructor(
public tx: IDBTransaction,
public store: IndexedDBStore
) {
Expand Down
2 changes: 1 addition & 1 deletion src/Storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a278d37

Please sign in to comment.