mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
fix return type of ClientSession.withSession (#37890)
This commit is contained in:
committed by
Sheetal Nandi
parent
1dd4c8fbf8
commit
c2c99a3bf0
Vendored
+1
-1
@@ -143,7 +143,7 @@ export interface ClientSession extends EventEmitter {
|
||||
* @param fn Function to execute with the new session.
|
||||
* @param options Optional settings for the transaction
|
||||
*/
|
||||
withTransaction<T>(fn: WithTransactionCallback<T>, options?: TransactionOptions): Promise<T>;
|
||||
withTransaction<T>(fn: WithTransactionCallback<T>, options?: TransactionOptions): Promise<void>;
|
||||
}
|
||||
|
||||
// http://mongodb.github.io/node-mongodb-native/3.1/api/global.html#ReadConcern
|
||||
|
||||
Reference in New Issue
Block a user