不要怂,就是干,撸起袖子干!

Commit d685a9a7 by George Zhao Committed by GitHub

fix(model.d): accept [Op.is] in where (broken in TypeScript 4.4) (#13499)

* fix(model.d): accept `[Op.is]` in where

* fix(model.d): test `[Op.is]` in where

Co-authored-by: Sascha Depold <sdepold@users.noreply.github.com>
Co-authored-by: Constantin Metz <58604248+Keimeno@users.noreply.github.com>
1 parent 69d899e2
Showing with 4 additions and 0 deletions
......@@ -161,6 +161,9 @@ export interface WhereOperators {
/** Example: `[Op.not]: true,` becomes `IS NOT TRUE` */
[Op.not]?: null | boolean | string | number | Literal | WhereOperators;
/** Example: `[Op.is]: null,` becomes `IS NULL` */
[Op.is]?: null;
/** Example: `[Op.between]: [6, 10],` becomes `BETWEEN 6 AND 10` */
[Op.between]?: Rangable;
......
......@@ -50,6 +50,7 @@ expectTypeOf({
[Op.lte]: 10, // <= 10
[Op.ne]: 20, // != 20
[Op.not]: true, // IS NOT TRUE
[Op.is]: null, // IS NULL
[Op.between]: [6, 10], // BETWEEN 6 AND 10
[Op.notBetween]: [11, 15], // NOT BETWEEN 11 AND 15
[Op.in]: [1, 2], // IN [1, 2]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!