File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export interface ConnectionOptions
138
138
tls : boolean ;
139
139
noDelay ?: boolean ;
140
140
socketTimeoutMS ?: number ;
141
- /** @internal */
141
+ /** @deprecated - Will be removed in a future major release. Users should use AbortSignal instead. */
142
142
cancellationToken ?: CancellationToken ;
143
143
metadata : ClientMetadata ;
144
144
/** @internal */
Original file line number Diff line number Diff line change @@ -208,10 +208,6 @@ expectType<FindCursor<WithId<{ color: string }>>>(
208
208
colorCollection . find < { color : string } > ( { color : { $in : colorsFreeze } } ) ;
209
209
colorCollection . find < { color : string } > ( { color : { $in : [ 'regularArray' ] } } ) ;
210
210
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
-
215
211
// Ensure users can create a custom Db type that only contains specific
216
212
// collections (which are, in turn, strongly typed):
217
213
type Person = {
You can’t perform that action at this time.
0 commit comments