# types.WindowTarget

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

```ts
type WindowTarget = "last" | "next" | "previous" | (string & Record<never, never>)
```

A relative direction, or any window target tmux accepts.

The intersection keeps the three literals in autocomplete instead of letting
the bare [`string`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) swallow them.
