From 8c7115cbc5792bd12278c9a8e08c94a880eb5a87 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Wed, 7 Jul 2021 14:50:05 -0400 Subject: [PATCH] fix(NODE-3416): make change stream generic default to Document (#2882) --- 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 2e89355359f..45deb2b97fc 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;