Skip to content

Commit

Permalink
fix example lines re #11457
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanHafez committed Feb 27, 2022
1 parent ad5df29 commit e3ce230
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2489,8 +2489,9 @@ declare module 'mongoose' {

/**
* Filter query to select the documents that match the query
* @example ```js
* { "age": { "$gte": 30 } }
* @example
* ```js
* { age: { $gte: 30 } }
* ```
*/
export type FilterQuery<T> = _FilterQuery<T>;
Expand Down Expand Up @@ -2552,8 +2553,9 @@ declare module 'mongoose' {

/**
* Update query command to perform on the document
* @example ```js
* { "age": 30 }
* @example
* ```js
* { age: 30 }
* ```
*/
export type UpdateQuery<T> = _UpdateQuery<_UpdateQueryDef<T>> & AnyObject;
Expand Down

0 comments on commit e3ce230

Please sign in to comment.