From 35156d5f5d0c69e64bde05d6aba4fece827de0a7 Mon Sep 17 00:00:00 2001 From: Peter Keuter Date: Fri, 7 Jul 2017 17:07:08 +0200 Subject: [PATCH 1/2] update pool configuration options --- types/mssql/index.d.ts | 17 +++++++++++++---- types/mssql/mssql-tests.ts | 3 +++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/types/mssql/index.d.ts b/types/mssql/index.d.ts index 63cbd69dc6..06da51a99f 100644 --- a/types/mssql/index.d.ts +++ b/types/mssql/index.d.ts @@ -148,11 +148,20 @@ export interface IOptions { trustedConnection?: boolean; } - export interface IPool { - min: number; - max: number; - idleTimeoutMillis: number; + min?: number; + max?: number; + idleTimeoutMillis?: number; + maxWaitingClients?: number; + testOnBorrow?: boolean; + acquireTimeoutMillis?: number; + fifo?: boolean; + priorityRange?: number; + autostart?: boolean; + evictionRunIntervalMillis?: number; + numTestsPerRun?: number; + softIdleTimeoutMillis?: number; + Promise?: any; } export declare var pool: IPool; diff --git a/types/mssql/mssql-tests.ts b/types/mssql/mssql-tests.ts index 9922364dc1..9d9e72bd4f 100644 --- a/types/mssql/mssql-tests.ts +++ b/types/mssql/mssql-tests.ts @@ -12,6 +12,9 @@ var config: sql.config = { connectionTimeout: 10000, options: { encrypt: true + }, + pool: { + autostart: true } } From ce68df0750961540a30f25ba1eca2b532b6dee66 Mon Sep 17 00:00:00 2001 From: Peter Keuter Date: Fri, 7 Jul 2017 17:09:56 +0200 Subject: [PATCH 2/2] update version number --- types/mssql/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mssql/index.d.ts b/types/mssql/index.d.ts index 06da51a99f..1200bacfd0 100644 --- a/types/mssql/index.d.ts +++ b/types/mssql/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for mssql 4.0.2 +// Type definitions for mssql 4.0.4 // Project: https://www.npmjs.com/package/mssql // Definitions by: COLSA Corporation , Ben Farr , Vitor Buzinaro , Matt Richardson , Jørgen Elgaard Larsen , Peter Keuter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped