Skip to content

Commit

Permalink
Merge pull request #11124 from DavideViolante/patch-2
Browse files Browse the repository at this point in the history
fix(index.d.ts): fix typings in Group stage
  • Loading branch information
vkarpov15 committed Dec 21, 2021
2 parents 4f5c0a6 + 8a64699 commit 33792d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3058,10 +3058,7 @@ declare module 'mongoose' {

export interface Group {
/** [`$group` reference](https://docs.mongodb.com/manual/reference/operator/aggregation/group) */
$group: {
_id: any
[key: string]: { [op in AccumulatorOperator]?: any }
}
$group: { _id: any } | { _id: any; [key: string]: { [op in AccumulatorOperator]?: any } }
}

export interface IndexStats {
Expand Down

0 comments on commit 33792d1

Please sign in to comment.