fix build
This commit is contained in:
@@ -275,7 +275,7 @@ export function useFilterUtilities(
|
||||
const isBooleanPropertyInfo = (
|
||||
prop: PropertyInfo | BooleanPropertyInfo
|
||||
): prop is BooleanPropertyInfo => {
|
||||
return 'type' in prop && (prop as BooleanPropertyInfo).type === 'boolean'
|
||||
return prop.type === 'boolean'
|
||||
}
|
||||
|
||||
const createFilterData = (params: CreateFilterParams): FilterData => {
|
||||
|
||||
@@ -77,7 +77,7 @@ export type StringFilterData = BaseFilterData & {
|
||||
isDefaultAllSelected?: boolean
|
||||
}
|
||||
|
||||
export type BooleanPropertyInfo = PropertyInfo & {
|
||||
export type BooleanPropertyInfo = Omit<PropertyInfo, 'type'> & {
|
||||
type: 'boolean'
|
||||
valueGroups: { value: boolean; ids: string[] }[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user