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

> The CustomFilterOperator type of @salmonui/data-grid/engine: Custom operator: a pure function of one cell value. It runs once per distinct value of the column, not once per row, so it must not depend on other fields of the row.

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

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

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

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: type

```ts
type CustomFilterOperator<Row = unknown> = (value: unknown, filterValue: Json, ctx: CustomOperatorContext<Row>) => boolean;
```

Custom operator: a pure function of one cell value. It runs once per
distinct value of the column, not once per row, so it must not depend on
other fields of the row.
