Skip to content

Commit 91902aa

Browse files
adjust Document in schema to TSchema
1 parent 1c0181a commit 91902aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/change_stream.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export interface ChangeStreamUpdateDocument<TSchema extends Document = Document>
271271
* when creating the change stream. If 'whenAvailable' was specified but the
272272
* pre-image is unavailable, this will be explicitly set to null.
273273
*/
274-
fullDocumentBeforeChange?: Document;
274+
fullDocumentBeforeChange?: TSchema;
275275
}
276276

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

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

321321
/**

0 commit comments

Comments
 (0)