Skip to content

Commit 3e28e07

Browse files
Update src/collection.ts
Co-authored-by: Bailey Pearson <[email protected]>
1 parent 395d2b1 commit 3e28e07

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
@@ -549,7 +549,7 @@ export class Collection<TSchema extends Document = Document> {
549549

550550
async findOne(
551551
filter: Filter<TSchema> = {},
552-
options: Omit<FindOneOptions, ''> & Abortable = {}
552+
options: Omit<FindOneOptions, 'timeoutMode'> & Abortable = {}
553553
): Promise<WithId<TSchema> | null> {
554554
const opts = { ...options };
555555
// Explicitly set the limit to 1 and singleBatch to true for all commands, per the spec.

0 commit comments

Comments
 (0)