feat: Adjust global hooks to work with both knex and objection

This commit is contained in:
Faruk AYDIN
2023-10-03 19:49:19 +02:00
parent f490632722
commit f0712bd213
2 changed files with 20 additions and 7 deletions

View File

@@ -1,8 +1,11 @@
import { Knex } from 'knex';
import { Transaction } from 'objection';
declare global {
declare namespace globalThis {
// eslint-disable-next-line no-var
var knex: Knex;
var knexInstance: Knex;
// eslint-disable-next-line no-var
var knex: Transaction;
}
}