Skip to content

Commit b24d29d

Browse files
fix: address linting issues
1 parent bfbe2e9 commit b24d29d

File tree

5 files changed

+5
-28
lines changed

5 files changed

+5
-28
lines changed

src/cursor/abstract_cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export interface AbstractCursorOptions extends BSONSerializeOptions {
7777
readConcern?: ReadConcernLike;
7878
batchSize?: number;
7979
maxTimeMS?: number;
80-
comment?: Document | string;
80+
comment?: any;
8181
tailable?: boolean;
8282
awaitData?: boolean;
8383
noCursorTimeout?: boolean;

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ export type {
278278
AlternativeType,
279279
ArrayOperator,
280280
BitwiseFilter,
281-
BSONLike,
282281
BSONTypeAlias,
283282
Condition,
284283
EnhancedOmit,

src/mongo_types.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -187,28 +187,6 @@ export const BSONType = Object.freeze({
187187
maxKey: 127
188188
} as const);
189189

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-
212190
/** @public */
213191
export type BSONType = typeof BSONType[keyof typeof BSONType];
214192
/** @public */

src/operations/aggregate.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Document } from '../bson';
22
import { MongoInvalidArgumentError } from '../error';
3-
import type { BSONLike } from '../mongo_types';
43
import type { Server } from '../sdam/server';
54
import type { ClientSession } from '../sessions';
65
import type { Callback } from '../utils';
@@ -33,7 +32,7 @@ export interface AggregateOptions extends CommandOperationOptions {
3332
/** Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0). */
3433
let?: Document;
3534
/** Comment to apply to the operation. */
36-
comment?: BSONLike;
35+
comment?: any;
3736

3837
out?: string;
3938
}

src/operations/find_and_modify.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { Document } from '../bson';
22
import type { Collection } from '../collection';
33
import { MongoCompatibilityError, MongoInvalidArgumentError } from '../error';
4-
import type { BSONLike } from '../mongo_types';
54
import { ReadPreference } from '../read_preference';
65
import type { Server } from '../sdam/server';
76
import type { ClientSession } from '../sessions';
@@ -83,7 +82,9 @@ interface FindAndModifyCmdBase {
8382
maxTimeMS?: number;
8483
let?: Document;
8584
writeConcern?: WriteConcern | WriteConcernSettings;
86-
comment?: BSONLike;
85+
86+
// TODO: add comment
87+
comment?: any;
8788
}
8889

8990
function configureFindAndModifyCmdBaseUpdateOpts(

0 commit comments

Comments
 (0)