-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.0.0
-
Component/s: Shell
-
Empty show more show less
In Typescript when listing the function overrides you have to enumerate all possible usages, seperate from the actual function signature. For example:
watch(): ChangeStream;
watch(pipeline?: Document[]): ChangeStream;
watch(pipeline?: Document[], options?: ChangeStreamOptions): ChangeStream {/* ... */}
Since there is no override that accepts options, options is not exposed as a parameter to the user of this function. This is also a case where no override is necessary. We should scan through our usage of overrides and make sure we have used it correctly and completely.
Helpful regex: \1 references the first capture group!
^\s*(\w+)\(.*\).+;\n\s+\1
- is cloned by
-
NODE-3430 Audit function overrides for complete definitions – db.watch() and client.watch()
- Closed
- is depended on by
-
MONGOSH-467 Update driver to 4.0
- Closed