Made overloads work with union types.

https://github.com/Microsoft/TypeScript/issues/1805
This commit is contained in:
Victor Widell
2017-02-06 11:47:15 +01:00
committed by GitHub
parent f4f0bef0e1
commit b8b063f64b
+2 -3
View File
@@ -96,11 +96,10 @@ export declare class Client extends events.EventEmitter {
end(callback?: (err: Error) => void): void;
release(): void;
query(queryText: string): Promise<QueryResult>;
query(queryTextOrConfig: string | QueryConfig): Promise<QueryResult>;
query(queryText: string, values: any[]): Promise<QueryResult>;
query(queryText: string, callback?: (err: Error, result: QueryResult) => void): Query;
query(config: QueryConfig, callback?: (err: Error, result: QueryResult) => void): Query;
query(queryTextOrConfig: string | QueryConfig, callback?: (err: Error, result: QueryResult) => void): Query;
query(queryText: string, values: any[], callback?: (err: Error, result: QueryResult) => void): Query;
copyFrom(queryText: string): stream.Writable;