Skip to content

Commit c88d8cc

Browse files
committed
fix types
1 parent 9576632 commit c88d8cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sdam/topology.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
TOPOLOGY_OPENING
2323
} from '../constants';
2424
import {
25+
type AnyError,
2526
MongoCompatibilityError,
2627
type MongoDriverError,
2728
MongoError,
@@ -107,7 +108,7 @@ export interface ServerSelectionRequest {
107108
transaction?: Transaction;
108109
startTime: number;
109110
resolve: (server: Server) => void;
110-
reject: (reason?: any) => void;
111+
reject: (error?: AnyError) => void;
111112
[kCancelled]?: boolean;
112113
timeoutController: TimeoutController;
113114
operationName: string;

0 commit comments

Comments
 (0)