Skip to content

Commit cc4b9e0

Browse files
authored
fix(ClientSession): correct toBSON TypeScript signature (#2686)
1 parent b1bdb06 commit cc4b9e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class ClientSession extends EventEmitter {
291291
/**
292292
* This is here to ensure that ClientSession is never serialized to BSON.
293293
*/
294-
toBSON(): void {
294+
toBSON(): never {
295295
throw new Error('ClientSession cannot be serialized to BSON.');
296296
}
297297

0 commit comments

Comments
 (0)