Skip to content

Commit d43abe7

Browse files
committed
fix: new override rules
1 parent 2c5fcea commit d43abe7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/bulk/common.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { ClientSession, Server } from '..';
21
import {
32
BSONSerializeOptions,
43
Document,
@@ -24,7 +23,9 @@ import { InsertOperation } from '../operations/insert';
2423
import { AbstractOperation, Hint } from '../operations/operation';
2524
import { makeUpdateStatement, UpdateOperation, UpdateStatement } from '../operations/update';
2625
import { PromiseProvider } from '../promise_provider';
26+
import type { Server } from '../sdam/server';
2727
import type { Topology } from '../sdam/topology';
28+
import type { ClientSession } from '../sessions';
2829
import {
2930
applyRetryableWrites,
3031
Callback,
@@ -935,7 +936,7 @@ class BulkWriteShimOperation extends AbstractOperation {
935936
this.bulkOperation = bulkOperation;
936937
}
937938

938-
execute(server: Server, session: ClientSession, callback: Callback<any>): void {
939+
execute(server: Server, session: ClientSession | undefined, callback: Callback<any>): void {
939940
if (this.options.session == null) {
940941
// An implicit session could have been created by 'executeOperation'
941942
// So if we stick it on finalOptions here, each bulk operation

src/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ export class MongoUnexpectedServerResponseError extends MongoRuntimeError {
438438
super(message);
439439
}
440440

441-
get name(): string {
441+
override get name(): string {
442442
return 'MongoUnexpectedServerResponseError';
443443
}
444444
}

0 commit comments

Comments
 (0)