Skip to content

Commit caf668a

Browse files
Update src/collection.ts
Co-authored-by: Bailey Pearson <bailey.pearson@mongodb.com>
1 parent 823aee5 commit caf668a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export class Collection<TSchema extends Document = Document> {
520520

521521
async findOne(
522522
filter: Filter<TSchema> = {},
523-
options: Omit<FindOneOptions, ''> & Abortable = {}
523+
options: Omit<FindOneOptions, 'timeoutMode'> & Abortable = {}
524524
): Promise<WithId<TSchema> | null> {
525525
const opts = { ...options };
526526
// Explicitly set the limit to 1 and singleBatch to true for all commands, per the spec.

0 commit comments

Comments
 (0)