Skip to content

Commit

Permalink
fix(ClientSession): correct toBSON TypeScript signature (#2686)
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax authored Jan 11, 2021
1 parent b1bdb06 commit cc4b9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class ClientSession extends EventEmitter {
/**
* This is here to ensure that ClientSession is never serialized to BSON.
*/
toBSON(): void {
toBSON(): never {
throw new Error('ClientSession cannot be serialized to BSON.');
}

Expand Down

0 comments on commit cc4b9e0

Please sign in to comment.