-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(NODE-4069): remove 'default' from options for fullDocument field …
…in change stream options (#3169)
- Loading branch information
1 parent
d43bd10
commit 799689e
Showing
4 changed files
with
126 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { expectType } from 'tsd'; | ||
|
||
import type { ChangeStreamOptions } from '../../src'; | ||
|
||
declare const changeStreamOptions: ChangeStreamOptions; | ||
|
||
// The change stream spec says that we cannot throw an error for invalid values to `fullDocument` | ||
// for future compatability. This means we must leave `fullDocument` as type string. | ||
expectType<string | undefined>(changeStreamOptions.fullDocument); |