Skip to content

Commit

Permalink
Merge pull request #10 from JakeGinnivan/improve-unit-of-work-type
Browse files Browse the repository at this point in the history
fix: Unit of work return type was Promise<any>
  • Loading branch information
JakeGinnivan authored Jan 13, 2019
2 parents 7d86674 + 62ce558 commit 9f475f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read-query-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ReadQueryExecutor<
work: (
executor: UnitOfWorkQueryExecutor<TTableNames, Services>
) => Promise<T>
): PromiseLike<any> {
): PromiseLike<T> {
return this.knex.transaction(trx => {
// knex is aware of promises, and will automatically commit
// or reject based on this callback promise
Expand Down

0 comments on commit 9f475f3

Please sign in to comment.