Skip to content

Commit 47f3341

Browse files
Michael AndersonMichael Anderson
authored andcommitted
Fixed declaration errors
1 parent 00801ab commit 47f3341

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ declare class ConnectionObject {
2525
makeURL() : string;
2626

2727
/** 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;
2929
}
3030

3131
declare class Statement {
@@ -62,8 +62,8 @@ declare class PreparedStatement extends Statement {}
6262
declare class Connection {
6363
constructor(url: string | ConnectionStruct, driver?: any);
6464

65-
readonly get URL(): string;
66-
readonly get Driver(): Object;
65+
get URL(): string;
66+
get Driver(): Object;
6767

6868
/**
6969
* Creates a statement with the passed SQL.
@@ -149,7 +149,7 @@ declare class PooledConnection extends Connection {
149149
* @returns {Promise<boolean>}
150150
* @memberof PooledConnection
151151
*/
152-
kill() : Promse<boolean>;
152+
kill() : Promise<boolean>;
153153

154154
/**
155155
* Frees this connection for the pool
@@ -211,7 +211,7 @@ declare interface Pool {
211211
}
212212

213213
declare class StaticPool implements Pool {
214-
constructor(url: string | ConnectionObject, poolSize: number = 10, driver?: any);
214+
constructor(url: string | ConnectionObject, poolSize: number, driver?: any);
215215

216216
/**
217217
* The number of used connections in the pool
@@ -263,7 +263,7 @@ declare class StaticPool implements Pool {
263263
}
264264

265265
declare class DynamicPool implements Pool {
266-
constructor(url: string | ConnectionObject, poolSize: number = 10, driver?: any);
266+
constructor(url: string | ConnectionObject, poolSize: number, driver?: any);
267267

268268
/**
269269
* The number of used connections in the pool

0 commit comments

Comments
 (0)