Fixed Travic complains abount constructor

This commit is contained in:
yuyaryshev
2019-02-08 14:38:27 +03:00
committed by GitHub
parent cf2be352fa
commit 4a4ea0c3e7

3
types/pg/index.d.ts vendored
View File

@@ -207,8 +207,7 @@ export interface PoolClient extends ClientBase {
}
export class Query extends events.EventEmitter implements Submittable {
constructor();
constructor(queryTextOrConfig: string | QueryConfig, values?: any[]);
constructor(queryTextOrConfig?: string | QueryConfig, values?: any[]);
submit: (connection: Connection) => void;
on(event: "row", listener: (row: any, result?: ResultBuilder) => void): this;
on(event: "error", listener: (err: Error) => void): this;