mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Add declarations to create Transaction from ConnectionPool and Request from Transaction (#27728)
This commit is contained in:
committed by
Sheetal Nandi
parent
b3be281d3c
commit
c47fec2e66
Vendored
+2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user