Skip to content

Commit

Permalink
can we make these protected so it is easier to inherit from these cla…
Browse files Browse the repository at this point in the history
…sses? (#54)
  • Loading branch information
Michal Rousal authored and deregtd committed Jul 19, 2018
1 parent e34680c commit 2920984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StoreHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type DBStore<Name extends string, ObjectType, KeyFormat> = string & { nam
export type DBIndex<Store extends DBStore<string, any, any>, IndexKeyFormat> = string & { store?: Store, indexKeyFormat?: IndexKeyFormat };

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

Expand Down Expand Up @@ -70,7 +70,7 @@ export class SimpleTransactionIndexHelper<ObjectType extends ItemType, IndexKeyF
}

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

Expand Down

0 comments on commit 2920984

Please sign in to comment.