Skip to content

Commit

Permalink
fix(types): fix $switch expression type
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanHafez committed Jul 11, 2022
1 parent e7b9a4d commit 9f906b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/expressions.d.ts
Expand Up @@ -1067,13 +1067,13 @@ declare module 'mongoose' {
* - $case
* - $then
*/
$branches: { $case: Expression, then: Expression }[];
branches: { case: Expression, then: Expression }[];
/**
* The path to take if no branch case expression evaluates to true.
*
* Although optional, if default is unspecified and no branch case evaluates to true, $switch returns an error.
*/
$default: Expression;
default: Expression;
};
}

Expand Down

0 comments on commit 9f906b6

Please sign in to comment.