Skip to content

Commit

Permalink
fix signature of ComparisonFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Volland committed Sep 5, 2022
1 parent 7b33009 commit 20e0639
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ export type RangeFilter = [
];

/**
* A ComparisonFilter compares a value of an object (by key) with an expected
* value.
* A ComparisonFilter compares two values.
* If the fist argument is a GeoStylerFunction it will be evaluated it.
* If it is a string it will be treated as key of an object.
*/
export type ComparisonFilter = [
ComparisonOperator,
Expression<string>,
Expression<string | number | boolean>,
Expression<string | number | boolean>
] | RangeFilter;

Expand Down

0 comments on commit 20e0639

Please sign in to comment.