We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a24dce3 commit 122d283Copy full SHA for 122d283
types/document.d.ts
@@ -18,7 +18,7 @@ declare module 'mongoose' {
18
* * TQueryHelpers - Object with any helpers that should be mixed into the Query type
19
* * DocType - the type of the actual Document created
20
*/
21
- class Document<T = unknown, TQueryHelpers = any, DocType = any, TVirtuals = Record<string, any>, TSchemaOptions = {}> {
+ class Document<T = ObjectId, TQueryHelpers = any, DocType = any, TVirtuals = Record<string, any>, TSchemaOptions = {}> {
22
constructor(doc?: any);
23
24
/** This documents _id. */
0 commit comments