diff --git a/packages/shared-core/src/filters.ts b/packages/shared-core/src/filters.ts index bad6d36cba..e16e27fd30 100644 --- a/packages/shared-core/src/filters.ts +++ b/packages/shared-core/src/filters.ts @@ -678,7 +678,7 @@ export const runQuery = (docs: Record[], query: SearchFilters) => { const and = match( LogicalOperator.AND, - (docValue: Record, conditions: any) => { + (docValue: Record, conditions: SearchFilters[]) => { if (!conditions.length) { return false } @@ -693,7 +693,7 @@ export const runQuery = (docs: Record[], query: SearchFilters) => { ) const or = match( LogicalOperator.OR, - (docValue: Record, conditions: any) => { + (docValue: Record, conditions: SearchFilters[]) => { if (!conditions.length) { return false }