Skip to content

Commit

Permalink
Edit ConfigurableFilter type
Browse files Browse the repository at this point in the history
  • Loading branch information
Paola Nicosia committed Nov 4, 2024
1 parent 20d717d commit 91d983d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- `ConfigurableFilter`: add `LookupValue` type to value

## [1.0.19] - 2024-10-28

- `isPartialFormat` option is available inside data-schema `formOptions`
Expand Down
4 changes: 3 additions & 1 deletion src/schemas/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ export type FilterOperator = |
'hasLengthGreaterEqual' |
'hasLengthLessEqual'

export type LookupValue = Record<'label' | 'value', string | number>

export interface ConfigurableFilter {
operator: FilterOperator
property: string
value: string | number | boolean | any[]
value: string | number | boolean | LookupValue | any[]
}

export interface Filter extends ConfigurableFilter {
Expand Down

0 comments on commit 91d983d

Please sign in to comment.