Skip to content

Commit

Permalink
Fix query builder multiselect type (#4093)
Browse files Browse the repository at this point in the history
* Fix type

* Add changeset
  • Loading branch information
rasitozcan authored Jan 12, 2024
1 parent ddb1896 commit 06ad5e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-weeks-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@toptal/picasso-query-builder': patch
---

- fix type for multiselect field
6 changes: 3 additions & 3 deletions packages/picasso-query-builder/src/types/query-builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { SelectProps } from '@toptal/picasso'
import type { ReactNode } from 'react'
import type {
Field as QueryBuilderField,
Expand Down Expand Up @@ -37,8 +36,9 @@ interface BooleanField
}
interface MultiSelectField
extends Omit<QueryBuilderField, 'inputType' | 'valueEditorType'> {
valueEditorType?: 'multiselect' &
Pick<SelectProps, 'enableReset' | 'enableResetSearch'>
valueEditorType?: 'multiselect'
enableReset?: boolean
enableResetSearch?: boolean
}

interface AutoCompleteField
Expand Down

0 comments on commit 06ad5e3

Please sign in to comment.