Skip to content

Commit e44b64a

Browse files
fix TS compilation
1 parent 6bc0f30 commit e44b64a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mongodb-legacy.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ declare class LegacyChangeStream<TSchema extends Document = Document, TChange ex
206206
/**
207207
* Try to get the next available document from the Change Stream's cursor or `null` if an empty batch is returned
208208
*/
209-
tryNext(): Promise<Document | null>;
210-
tryNext(callback: Callback<Document | null>): void;
209+
tryNext(): Promise<TChange | null>;
210+
tryNext(callback: Callback<TChange | null>): void;
211211
/** Close the Change Stream */
212212
close(): Promise<void>;
213213
close(callback: Callback): void;

0 commit comments

Comments
 (0)