You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./index.ts:16:56 - error TS2344: Type 'Test' does not satisfy the constraint 'Document<any, any, any>'.
Type 'Test' is missing the following properties from type 'Document<any, any, any>': $assertPopulated, $clone, $getAllSubdocs, $ignore, and 47 more.
16 const testModel = mongoose.model<Test, SoftDeleteModel<Test>>("Test", TestSchema);
I would appreciate any help. Thx.
The text was updated successfully, but these errors were encountered:
juliojordan
changed the title
Type 'Test' does not satisfy the constraint 'Document<any, any, any>'.
Type Test does not satisfy the constraint Document<any, any, any>.
Jun 28, 2024
Mongoose removed support for
extends Document
How to reproduce it?
Removing the
extends Document
from the How It Works TypeScript version example.You'll get this error.
I would appreciate any help. Thx.
The text was updated successfully, but these errors were encountered: