Thanks for sharing!
However manually providing type definitions is a nightmare, especially things like cluster.db('x').collection('x').findOneAndUpdate... You can't even borrow definitions from mongodb node driver because they are slightly different here and there :(
I assume it's something you have already figured out yourself, but I've added the "🔩 Add type declarations" subsection, it's not perfect but isn't that bad either.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for sharing!
However manually providing type definitions is a nightmare, especially things like
cluster.db('x').collection('x').findOneAndUpdate
... You can't even borrow definitions frommongodb
node driver because they are slightly different here and there :(I assume it's something you have already figured out yourself, but I've added the "🔩 Add type declarations" subsection, it's not perfect but isn't that bad either.