mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add some extras to knex that we've needed
This commit is contained in:
Vendored
+5
@@ -135,6 +135,8 @@ declare module "knex" {
|
||||
|
||||
transacting(trx: Transaction): QueryBuilder;
|
||||
connection(connection: any): QueryBuilder;
|
||||
|
||||
clone(): QueryBuilder;
|
||||
}
|
||||
|
||||
interface As {
|
||||
@@ -394,6 +396,7 @@ declare module "knex" {
|
||||
}
|
||||
|
||||
interface Config {
|
||||
debug?: boolean;
|
||||
client?: string;
|
||||
dialect?: string;
|
||||
connection: string|ConnectionConfig|
|
||||
@@ -427,7 +430,9 @@ declare module "knex" {
|
||||
interface PoolConfig {
|
||||
name?: string;
|
||||
create?: Function;
|
||||
afterCreate?: Function;
|
||||
destroy?: Function;
|
||||
beforeDestroy?: Function;
|
||||
min?: number;
|
||||
max?: number;
|
||||
refreshIdle?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user