From c2c99a3bf032cadf16bdd377a922e8497bd72b33 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Mon, 26 Aug 2019 17:03:01 +0200 Subject: [PATCH] fix return type of ClientSession.withSession (#37890) --- types/mongodb/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index db3920c1a3..5c9f459b82 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -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(fn: WithTransactionCallback, options?: TransactionOptions): Promise; + withTransaction(fn: WithTransactionCallback, options?: TransactionOptions): Promise; } // http://mongodb.github.io/node-mongodb-native/3.1/api/global.html#ReadConcern