sevenwestmedia-labs / node-knex-query-executor

TypeScript first encapsulation and reusability of knex database queries
MIT License
3 stars 4 forks source link

Make it easy to reference unit of work / base query executor type #4

Closed JakeGinnivan closed 5 years ago

JakeGinnivan commented 5 years ago

Because of the generic arguments you need to do something like this

export type ReadQueryExecutor = LibReadQueryExecutor<keyof typeof tableNames, Scope>
export type UnitOfWorkQueryExecutor = LibUnitOfWorkQueryExecutor<keyof typeof tableNames, Scope>

There should be an easier way to get the unit of work type.

JakeGinnivan commented 5 years ago

:tada: This issue has been resolved in version 1.0.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: