Skip to content

Commit

Permalink
adjust Document in schema to TSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed May 18, 2022
1 parent 1c0181a commit 91902aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/change_stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export interface ChangeStreamUpdateDocument<TSchema extends Document = Document>
* when creating the change stream. If 'whenAvailable' was specified but the
* pre-image is unavailable, this will be explicitly set to null.
*/
fullDocumentBeforeChange?: Document;
fullDocumentBeforeChange?: TSchema;
}

/**
Expand All @@ -294,7 +294,7 @@ export interface ChangeStreamReplaceDocument<TSchema extends Document = Document
* when creating the change stream. If 'whenAvailable' was specified but the
* pre-image is unavailable, this will be explicitly set to null.
*/
fullDocumentBeforeChange?: Document;
fullDocumentBeforeChange?: TSchema;
}

/**
Expand All @@ -315,7 +315,7 @@ export interface ChangeStreamDeleteDocument<TSchema extends Document = Document>
* when creating the change stream. If 'whenAvailable' was specified but the
* pre-image is unavailable, this will be explicitly set to null.
*/
fullDocumentBeforeChange?: Document;
fullDocumentBeforeChange?: TSchema;
}

/**
Expand Down

0 comments on commit 91902aa

Please sign in to comment.