diff --git a/types/lib/model.d.ts b/types/lib/model.d.ts index 8e4b4f55b6c4..cabfd549d53f 100644 --- a/types/lib/model.d.ts +++ b/types/lib/model.d.ts @@ -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; diff --git a/types/test/where.ts b/types/test/where.ts index 58b30117ff74..6748f30c88ce 100644 --- a/types/test/where.ts +++ b/types/test/where.ts @@ -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]