File tree Expand file tree Collapse file tree 5 files changed +5
-28
lines changed Expand file tree Collapse file tree 5 files changed +5
-28
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export interface AbstractCursorOptions extends BSONSerializeOptions {
77
77
readConcern ?: ReadConcernLike ;
78
78
batchSize ?: number ;
79
79
maxTimeMS ?: number ;
80
- comment ?: Document | string ;
80
+ comment ?: any ;
81
81
tailable ?: boolean ;
82
82
awaitData ?: boolean ;
83
83
noCursorTimeout ?: boolean ;
Original file line number Diff line number Diff line change @@ -278,7 +278,6 @@ export type {
278
278
AlternativeType ,
279
279
ArrayOperator ,
280
280
BitwiseFilter ,
281
- BSONLike ,
282
281
BSONTypeAlias ,
283
282
Condition ,
284
283
EnhancedOmit ,
Original file line number Diff line number Diff line change @@ -187,28 +187,6 @@ export const BSONType = Object.freeze({
187
187
maxKey : 127
188
188
} as const ) ;
189
189
190
- // TODO: ensure all BSON types are represented
191
- /** @public */
192
- export type BSONLike = any ;
193
- // | number
194
- // | string
195
- // | Document
196
- // | ReadonlyArray<any>
197
- // | Binary
198
- // | undefined
199
- // | ObjectId
200
- // | boolean
201
- // | Date
202
- // | null
203
- // | RegExp
204
- // // DbPointer
205
- // | Code
206
- // | CodeExtended
207
- // | Timestamp
208
- // | Decimal128
209
- // | MinKey
210
- // | MaxKey;
211
-
212
190
/** @public */
213
191
export type BSONType = typeof BSONType [ keyof typeof BSONType ] ;
214
192
/** @public */
Original file line number Diff line number Diff line change 1
1
import type { Document } from '../bson' ;
2
2
import { MongoInvalidArgumentError } from '../error' ;
3
- import type { BSONLike } from '../mongo_types' ;
4
3
import type { Server } from '../sdam/server' ;
5
4
import type { ClientSession } from '../sessions' ;
6
5
import type { Callback } from '../utils' ;
@@ -33,7 +32,7 @@ export interface AggregateOptions extends CommandOperationOptions {
33
32
/** Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0). */
34
33
let ?: Document ;
35
34
/** Comment to apply to the operation. */
36
- comment ?: BSONLike ;
35
+ comment ?: any ;
37
36
38
37
out ?: string ;
39
38
}
Original file line number Diff line number Diff line change 1
1
import type { Document } from '../bson' ;
2
2
import type { Collection } from '../collection' ;
3
3
import { MongoCompatibilityError , MongoInvalidArgumentError } from '../error' ;
4
- import type { BSONLike } from '../mongo_types' ;
5
4
import { ReadPreference } from '../read_preference' ;
6
5
import type { Server } from '../sdam/server' ;
7
6
import type { ClientSession } from '../sessions' ;
@@ -83,7 +82,9 @@ interface FindAndModifyCmdBase {
83
82
maxTimeMS ?: number ;
84
83
let ?: Document ;
85
84
writeConcern ?: WriteConcern | WriteConcernSettings ;
86
- comment ?: BSONLike ;
85
+
86
+ // TODO: add comment
87
+ comment ?: any ;
87
88
}
88
89
89
90
function configureFindAndModifyCmdBaseUpdateOpts (
You can’t perform that action at this time.
0 commit comments