Skip to content

Commit

Permalink
types: cherry-pick #14612 back to 7.x and fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jun 5, 2024
1 parent 40ec813 commit 7e6db5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ declare module 'mongoose' {
class ObjectId extends mongodb.ObjectId {
}

class Subdocument<IdType = any> extends Document<IdType> {
class Subdocument<IdType = any, TQueryHelpers = any, DocType = any> extends Document<IdType, TQueryHelpers, DocType> {
$isSingleNested: true;

/** Returns the top level document of this sub-document. */
Expand Down

0 comments on commit 7e6db5f

Please sign in to comment.