Skip to content

Commit 5491b00

Browse files
committed
chore: comments
1 parent 493283c commit 5491b00

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/cmap/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export interface ConnectionOptions
138138
tls: boolean;
139139
noDelay?: boolean;
140140
socketTimeoutMS?: number;
141-
/** @internal */
141+
/** @deprecated - Will be removed in a future major release. Users should use AbortSignal instead. */
142142
cancellationToken?: CancellationToken;
143143
metadata: ClientMetadata;
144144
/** @internal */

test/types/community/collection/findX.test-d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,6 @@ expectType<FindCursor<WithId<{ color: string }>>>(
208208
colorCollection.find<{ color: string }>({ color: { $in: colorsFreeze } });
209209
colorCollection.find<{ color: string }>({ color: { $in: ['regularArray'] } });
210210

211-
// This is a regression test that we don't remove the unused generic in FindOptions
212-
const findOptions: FindOptions = {};
213-
expectType<FindOptions>(findOptions);
214-
215211
// Ensure users can create a custom Db type that only contains specific
216212
// collections (which are, in turn, strongly typed):
217213
type Person = {

0 commit comments

Comments
 (0)