AllowNotOrAndWithImplicitAndArrayRecursive<T>: AllowArray<T | {
    [or]: AllowArray<AllowNotOrAndWithImplicitAndArrayRecursive<T>>;
} | {
    [and]: AllowArray<AllowNotOrAndWithImplicitAndArrayRecursive<T>>;
} | {
    [not]: AllowNotOrAndWithImplicitAndArrayRecursive<T>;
}>

This type allows using Op.or, Op.and, and Op.not recursively around another type. It also supports using a plain Array as an alias for Op.and. (unlike AllowNotOrAndRecursive).

Example of plain-array treated as Op.and:

User.findAll({ where: [{ id: 1 }, { id: 2 }] });

Meant to be used by WhereOptions.

Type Parameters

  • T