fix return type of ClientSession.withSession (#37890)

This commit is contained in:
Federico Caselli
2019-08-26 08:03:01 -07:00
committed by Sheetal Nandi
parent 1dd4c8fbf8
commit c2c99a3bf0
+1 -1
View File
@@ -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