diff --git a/packages/nocodb/src/lib/models/Filter.ts b/packages/nocodb/src/lib/models/Filter.ts index 425d8c3a60..c9259e1e7d 100644 --- a/packages/nocodb/src/lib/models/Filter.ts +++ b/packages/nocodb/src/lib/models/Filter.ts @@ -71,7 +71,7 @@ export const COMPARISON_SUB_OPS = [ ...IS_WITHIN_COMPARISON_SUB_OPS, ]; -export default class Filter { +export default class Filter implements FilterType { id: string; fk_model_id?: string; @@ -85,14 +85,14 @@ export default class Filter { value?: string; - logical_op?: string; + logical_op?: 'and' | 'or' | 'not'; is_group?: BoolType; children?: Filter[]; project_id?: string; base_id?: string; column?: Column; - constructor(data: Filter | FilterType) { + constructor(data: Filter) { Object.assign(this, data); }