mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +08:00
Add some extras to knex that we've needed
This commit is contained in:
1 parent
af5b8275d1
commit
a3633084f4
1 file changed
+5
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