# selection.WhereForKind

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

```ts
type WhereForKind<Kind> = Kind extends "session"
? SessionWhere
: Kind extends "window"
  ? WindowWhere
  : Kind extends "pane"
    ? PaneWhere
    : Kind extends "client"
      ? ClientWhere
      : never
```

The criteria shape belonging to one model kind.

## Type parameters

- `Kind`
