From 06de93b8dd3c668992f6fe81edaa526078ca493a Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Tue, 8 Jan 2019 20:25:00 +0300 Subject: [PATCH 1/2] Add handleDisconnects option to pool options Here is a description: http://docs.sequelizejs.com/class/lib/sequelize.js~Sequelize.html --- lib/sequelize.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/sequelize.d.ts b/lib/sequelize.d.ts index 66d0971..91c8020 100644 --- a/lib/sequelize.d.ts +++ b/lib/sequelize.d.ts @@ -74,6 +74,10 @@ export interface PoolOptions { * object, and that its state is not disconnected */ validate?: (client?: any) => boolean + /** + Controls if pool should handle connection disconnect automatically without throwing errors + */ + handleDisconnects?: boolean } /** From 7de4f0d920119326e694aad585236266b98b27f5 Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Tue, 8 Jan 2019 20:42:19 +0300 Subject: [PATCH 2/2] TSLint fixed for PoolOptions --- lib/sequelize.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sequelize.d.ts b/lib/sequelize.d.ts index 91c8020..9c3b133 100644 --- a/lib/sequelize.d.ts +++ b/lib/sequelize.d.ts @@ -74,8 +74,9 @@ export interface PoolOptions { * object, and that its state is not disconnected */ validate?: (client?: any) => boolean + /** - Controls if pool should handle connection disconnect automatically without throwing errors + * Controls if pool should handle connection disconnect automatically without throwing errors */ handleDisconnects?: boolean }