use tarn config TS types instead of generic-pool (#4064)

This commit is contained in:
Ben 2020-11-02 18:53:13 +08:00 committed by GitHub
parent 881c5ee136
commit 0632d7bfd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
types/index.d.ts vendored
View File

@ -1983,16 +1983,12 @@ declare namespace Knex {
priorityRange?: number;
log?: (message: string, logLevel: string) => void;
// generic-pool v3 configs
maxWaitingClients?: number;
testOnBorrow?: boolean;
// tarn configs
propagateCreateError?: boolean;
createRetryIntervalMillis?: number;
createTimeoutMillis?: number;
destroyTimeoutMillis?: number;
acquireTimeoutMillis?: number;
fifo?: boolean;
autostart?: boolean;
evictionRunIntervalMillis?: number;
numTestsPerRun?: number;
softIdleTimeoutMillis?: number;
Promise?: any;
}
type LogFn = (message: any) => void;