# selection.ScalarCriteria

- **Module:** selection
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/libtmux/src/selection.ts#L105
- **Page:** https://libtmux.org/en/ts/latest/reference/selection-scalarcriteria/

```ts
type ScalarCriteria<Value = never, Raw extends string = string> = | Value
| Raw
| null
| StringFilter<Value, Raw>
```

One field's criteria: a value to equal, or a filter describing how to compare.

The bare value is shorthand for `{ equals: `[`value`](/en/ts/latest/reference/types-tmuxsubscriptionevent-value/)` }`, and [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/null) matches a
field tmux reports as unset rather than empty.

## Type parameters

- `Value` (default `never`)
- `Raw` (bound `string`, default `string`)
