diff --git a/types/mssql/index.d.ts b/types/mssql/index.d.ts
index 63cbd69dc6..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
@@ -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
}
}