Skip to content

Commit

Permalink
Fix TS typings in Group stage
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideViolante authored Dec 20, 2021
1 parent 4f5c0a6 commit 8a64699
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 8a64699

Please sign in to comment.