Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

Commit 2920984

Browse files
Michal Rousalderegtd
authored andcommitted
can we make these protected so it is easier to inherit from these classes? (#54)
1 parent e34680c commit 2920984

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/StoreHelpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type DBStore<Name extends string, ObjectType, KeyFormat> = string & { nam
2222
export type DBIndex<Store extends DBStore<string, any, any>, IndexKeyFormat> = string & { store?: Store, indexKeyFormat?: IndexKeyFormat };
2323

2424
export class SimpleTransactionIndexHelper<ObjectType extends ItemType, IndexKeyFormat extends KeyType> {
25-
constructor(private _index: NoSqlProvider.DbIndex) {
25+
constructor(protected _index: NoSqlProvider.DbIndex) {
2626
// Nothing to see here
2727
}
2828

@@ -70,7 +70,7 @@ export class SimpleTransactionIndexHelper<ObjectType extends ItemType, IndexKeyF
7070
}
7171

7272
export class SimpleTransactionStoreHelper<StoreName extends string, ObjectType extends ItemType, KeyFormat extends KeyType> {
73-
constructor(private _store: NoSqlProvider.DbStore, storeName /* Force type-checking */: DBStore<StoreName, ObjectType, KeyFormat>) {
73+
constructor(protected _store: NoSqlProvider.DbStore, storeName /* Force type-checking */: DBStore<StoreName, ObjectType, KeyFormat>) {
7474
// Nothing to see here
7575
}
7676

0 commit comments

Comments
 (0)