Skip to content

Commit 46f3bec

Browse files
authored
Remove extraneous Document in replaceOne return type
1 parent 907aac1 commit 46f3bec

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
@@ -389,7 +389,7 @@ export class Collection<TSchema extends Document = Document> {
389389
filter: Filter<TSchema>,
390390
replacement: WithoutId<TSchema>,
391391
options?: ReplaceOptions
392-
): Promise<UpdateResult<TSchema> | Document> {
392+
): Promise<UpdateResult<TSchema>> {
393393
return await executeOperation(
394394
this.client,
395395
new ReplaceOneOperation(

0 commit comments

Comments
 (0)