Skip to content

Commit

Permalink
Resolved the typescript issue with the Op.match (sequelize#12955) (se…
Browse files Browse the repository at this point in the history
…quelize#13481)

* Update operators.d.ts

resolved the typescript issue for Op.match (sequelize#12955)

* Update operators.d.ts

Co-authored-by: Constantin Metz <58604248+Keimeno@users.noreply.github.com>
Co-authored-by: Sascha Depold <sdepold@users.noreply.github.com>
  • Loading branch information
3 people authored and aliatsis committed Jun 2, 2022
1 parent 8306db2 commit e0a3c52
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions types/lib/operators.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,26 @@ declare const Op: {
*/
readonly lte: unique symbol;
/**
* Operator !=
* Operator @@
*
* ```js
* [Op.ne]: 20
* [Op.match]: Sequelize.fn('to_tsquery', 'fat & rat')`
* ```
* In SQL
* ```sql
* != 20
* @@ to_tsquery('fat & rat')
* ```
*/
readonly match: unique symbol;
/**
* Operator @@
*
* ```js
* [Op.match]: Sequelize.fn('to_tsquery', 'fat & rat')`
* ```
* In SQL
* `@@ to_tsquery('fat & rat')`
*/
readonly ne: unique symbol;
/**
* Operator &> (PG range does not extend to the left of operator)
Expand Down

0 comments on commit e0a3c52

Please sign in to comment.