Browse Source

fix: type WhereClause should use union operator

e22m4u 3 weeks ago
parent
commit
91ff707210
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/filter/filter-clause.d.ts

+ 3 - 4
src/filter/filter-clause.d.ts

@@ -47,10 +47,9 @@ export declare type ItemFilterClause<M extends object = ModelData> = Pick<
  * {or: [...]}
  * ```
  */
-export declare type WhereClause<M extends object = ModelData> = Partial<
-  AndClause<M>
-> &
-  Partial<OrClause<M>> &
+export declare type WhereClause<M extends object = ModelData> =
+  Partial<AndClause<M>> |
+  Partial<OrClause<M>> |
   PropertiesClause<M>;
 
 /**