Typescript: schema type required
argument, and this
type
#13797
Labels
typescript
Types or Types-test related issue / Pull Request
Milestone
Prerequisites
Mongoose version
7.5.0
Node.js version
18.x
MongoDB server version
N/A
Typescript version (if applicable)
5.1.6
Description
In JS world, the document is accessible as an argument and as
this
forrequired
functions.In TS, however, we can not access those types.
Steps to Reproduce
The following test fails
Expected Behavior
I expect it to pass.
The text was updated successfully, but these errors were encountered: