Add declarations to create Transaction from ConnectionPool and Request from Transaction (#27728)

This commit is contained in:
Christoph Koseler (Akelius)
2018-07-31 12:26:56 -07:00
committed by Sheetal Nandi
parent b3be281d3c
commit c47fec2e66
+2
View File
@@ -201,6 +201,7 @@ export declare class ConnectionPool extends events.EventEmitter {
public close(): Promise<void>;
public close(callback: (err: any) => void): void;
public request(): Request;
public transaction(): Transaction;
}
export declare class ConnectionError implements Error {
@@ -297,6 +298,7 @@ export declare class Transaction extends events.EventEmitter {
public commit(callback: (err?: any) => void): void;
public rollback(): Promise<void>;
public rollback(callback: (err?: any) => void): void;
public request(): Request;
}
export declare class TransactionError implements Error {