@@ -25,7 +25,7 @@ declare class ConnectionObject {
25
25
makeURL ( ) : string ;
26
26
27
27
/** Allows plain object to be used to construct a ConnectionObject */
28
- static fromPlain ( obj : ConnectionStruct , driver ?: any ) ;
28
+ static fromPlain ( obj : ConnectionStruct , driver ?: any ) : ConnectionObject ;
29
29
}
30
30
31
31
declare class Statement {
@@ -62,8 +62,8 @@ declare class PreparedStatement extends Statement {}
62
62
declare class Connection {
63
63
constructor ( url : string | ConnectionStruct , driver ?: any ) ;
64
64
65
- readonly get URL ( ) : string ;
66
- readonly get Driver ( ) : Object ;
65
+ get URL ( ) : string ;
66
+ get Driver ( ) : Object ;
67
67
68
68
/**
69
69
* Creates a statement with the passed SQL.
@@ -149,7 +149,7 @@ declare class PooledConnection extends Connection {
149
149
* @returns {Promise<boolean> }
150
150
* @memberof PooledConnection
151
151
*/
152
- kill ( ) : Promse < boolean > ;
152
+ kill ( ) : Promise < boolean > ;
153
153
154
154
/**
155
155
* Frees this connection for the pool
@@ -211,7 +211,7 @@ declare interface Pool {
211
211
}
212
212
213
213
declare class StaticPool implements Pool {
214
- constructor ( url : string | ConnectionObject , poolSize : number = 10 , driver ?: any ) ;
214
+ constructor ( url : string | ConnectionObject , poolSize : number , driver ?: any ) ;
215
215
216
216
/**
217
217
* The number of used connections in the pool
@@ -263,7 +263,7 @@ declare class StaticPool implements Pool {
263
263
}
264
264
265
265
declare class DynamicPool implements Pool {
266
- constructor ( url : string | ConnectionObject , poolSize : number = 10 , driver ?: any ) ;
266
+ constructor ( url : string | ConnectionObject , poolSize : number , driver ?: any ) ;
267
267
268
268
/**
269
269
* The number of used connections in the pool
0 commit comments