From 46f3bec6f1896edf136282b4582c99663d4fcda0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20M=C3=BCller?= Date: Tue, 28 Jan 2025 19:01:11 +0100 Subject: [PATCH] Remove extraneous Document in replaceOne return type --- src/collection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collection.ts b/src/collection.ts index 468797bd0fd..19a0682d8b2 100644 --- a/src/collection.ts +++ b/src/collection.ts @@ -389,7 +389,7 @@ export class Collection { filter: Filter, replacement: WithoutId, options?: ReplaceOptions - ): Promise | Document> { + ): Promise> { return await executeOperation( this.client, new ReplaceOneOperation(