From a10f85903427d7c7dfd116cfe621a9de4dcc6b2f Mon Sep 17 00:00:00 2001 From: Sam Calvert Date: Mon, 21 Aug 2017 10:58:47 -0700 Subject: [PATCH] Update types for PoolOptions --- types/sequelize/index.d.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/types/sequelize/index.d.ts b/types/sequelize/index.d.ts index 7524162a1b..4678acad1f 100644 --- a/types/sequelize/index.d.ts +++ b/types/sequelize/index.d.ts @@ -5175,12 +5175,22 @@ declare namespace sequelize { * The maximum time, in milliseconds, that a connection can be idle before being released. */ idle?: number; + + /** + * The maximum time, in milliseconds, that pool will try to get connection before throwing error + */ + acquire?: number; /** * A function that validates a connection. Called with client. The default function checks that client is an * object, and that its state is not disconnected. */ - validateConnection?: (client?: any) => boolean; + validate?: (client?: any) => boolean; + + /* + * The time interval, in milliseconds, for evicting stale connections + */ + evict?: number; }