# FilterDescriptor (@salmonui/data-grid/engine)

> The FilterDescriptor interface of @salmonui/data-grid/engine.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/FilterDescriptor

```ts
import type { FilterDescriptor } from '@salmonui/data-grid/engine';
```

Also exported from `@salmonui/data-grid`.

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: interface

```ts
interface FilterDescriptor {
    readonly kind?: 'condition';
    readonly columnId: ColumnId;
    readonly operator: FilterOperator | (string & {});
    readonly value: Json;
    readonly predicate: 'and' | 'or';
    readonly matchCase?: boolean;
    readonly ignoreAccent?: boolean;
    readonly source: FilterSource;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind?: 'condition';` | optional |  |
| `columnId` | `readonly columnId: ColumnId;` |  |  |
| `operator` | `readonly operator: FilterOperator \| (string & {});` |  | A built-in operator or the name of a custom operator registered with `createFilterModule({ operators })`. |
| `value` | `readonly value: Json;` |  | `between`: `[from, to]` (inclusive). `in` / `notIn`: an array. Dates: ISO strings or epoch milliseconds. |
| `predicate` | `readonly predicate: 'and' \| 'or';` |  | Combination with the previous condition on the same column at the top level; ignored inside a group. |
| `matchCase` | `readonly matchCase?: boolean;` | optional |  |
| `ignoreAccent` | `readonly ignoreAccent?: boolean;` | optional |  |
| `source` | `readonly source: FilterSource;` |  |  |
