Skip to content

Commit

Permalink
allow OR wheres
Browse files Browse the repository at this point in the history
  • Loading branch information
angusfretwell committed Feb 29, 2024
1 parent 0079c5c commit 24d6d00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ type WhereOperator =
| "REGEXP"
| "NOT REGEXP";

type Where = [Field, WhereOperator, Value?];
type Where =
| [Field, WhereOperator, Value?]
| ["OR", [Field, WhereOperator, Value?]];

type Order = "ASC" | "DESC";

Expand Down

0 comments on commit 24d6d00

Please sign in to comment.