From 7a648e8ecd7007c9b372cec62c64c70fedeecf5d Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Tue, 6 Jul 2021 17:00:15 -0400 Subject: [PATCH 1/2] fix(change_stream): make change stream generic default to Document --- src/change_stream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/change_stream.ts b/src/change_stream.ts index 2e89355359..39f0a20d28 100644 --- a/src/change_stream.ts +++ b/src/change_stream.ts @@ -189,7 +189,7 @@ export type ChangeStreamEvents = { * Creates a new Change Stream instance. Normally created using {@link Collection#watch|Collection.watch()}. * @public */ -export class ChangeStream extends TypedEventEmitter { +export class ChangeStream extends TypedEventEmitter { pipeline: Document[]; options: ChangeStreamOptions; parent: MongoClient | Db | Collection; From 428aa166518486ddd49ad3c9ab6980b5e0319a95 Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Wed, 7 Jul 2021 11:55:10 -0400 Subject: [PATCH 2/2] fix: lint --- src/change_stream.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/change_stream.ts b/src/change_stream.ts index 39f0a20d28..45deb2b97f 100644 --- a/src/change_stream.ts +++ b/src/change_stream.ts @@ -189,7 +189,9 @@ export type ChangeStreamEvents = { * Creates a new Change Stream instance. Normally created using {@link Collection#watch|Collection.watch()}. * @public */ -export class ChangeStream extends TypedEventEmitter { +export class ChangeStream extends TypedEventEmitter< + ChangeStreamEvents +> { pipeline: Document[]; options: ChangeStreamOptions; parent: MongoClient | Db | Collection;