-
Type: Bug
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: TypeScript
What problem are you facing?
The following script fails to compile. Admittedly it is a strange example, but Mongoose users have run into this issue before: https://github.com/Automattic/mongoose/pull/12167
import { UpdateOneModel, Document } from 'mongodb'; const op: UpdateOneModel<Document> = { filter: { arr: { $nin: ['abc'] } }, update: { $addToSet: { arr: 'abc' } } };
What driver and relevant dependency versions are you using?
TypeScript 4.8.3. Node driver 4.9.1.
Steps to reproduce?
Run `tsc test.ts` with the above script.