Skip to content

Commit

Permalink
fix(NODE-3416): make change stream generic default to Document (#2882)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 authored Jul 7, 2021
1 parent 12d0060 commit 3d490dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/change_stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<TSchema extends Document> extends TypedEventEmitter<ChangeStreamEvents> {
export class ChangeStream<TSchema extends Document = Document> extends TypedEventEmitter<
ChangeStreamEvents
> {
pipeline: Document[];
options: ChangeStreamOptions;
parent: MongoClient | Db | Collection;
Expand Down

0 comments on commit 3d490dc

Please sign in to comment.