Skip to content

Commit 49aeed0

Browse files
committed
created AbstractCallbackOperation class
changed all operations to extend AbstractCallbackOperation changed all operations from execute to executeCallback
1 parent 82c1429 commit 49aeed0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/operations/execute_operation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import {
2525
import type { Topology } from '../sdam/topology';
2626
import type { ClientSession } from '../sessions';
2727
import { type Callback, maybeCallback, supportsRetryableWrites } from '../utils';
28-
import { AbstractCallbackOperation, type AbstractOperation, Aspect } from './operation';
28+
import { AbstractCallbackOperation, Aspect } from './operation';
2929

3030
const MMAPv1_RETRY_WRITES_ERROR_CODE = MONGODB_ERROR_CODES.IllegalOperation;
3131
const MMAPv1_RETRY_WRITES_ERROR_MESSAGE =
3232
'This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.';
3333

34-
type ResultTypeFromOperation<TOperation> = TOperation extends AbstractOperation<infer K>
34+
type ResultTypeFromOperation<TOperation> = TOperation extends AbstractCallbackOperation<infer K>
3535
? K
3636
: never;
3737

0 commit comments

Comments
 (0)