Skip to content

Commit

Permalink
fix: allow nulls for comparison filter
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon-mario committed Mar 28, 2019
1 parent 62ce80e commit 9bbdb25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/interfaces/filter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface ComparisonFilter<Value> {
readonly $search?: Value;
}
export declare type ItemFilter<I extends Item> = {
readonly [P in keyof I]?: I[P] | ComparisonFilter<I[P]>;
readonly [P in keyof I]?: I[P] | ComparisonFilter<null | I[P]>;
};
export interface LogicalFilter<I extends Item> {
readonly $and?: Filter<I>[];
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/Filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface ComparisonFilter<Value> {
}

export type ItemFilter<I extends Item> = {
readonly [P in keyof I]?: I[P] | ComparisonFilter<I[P]>;
readonly [P in keyof I]?: I[P] | ComparisonFilter<null | I[P]>;
};

export interface LogicalFilter<I extends Item> {
Expand Down

0 comments on commit 9bbdb25

Please sign in to comment.