# types.isTmuxName

- **Module:** types
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/types.ts#L205
- **Page:** https://libtmux.org/reference/ts/types-istmuxname/

```
types.isTmuxName(value: : unknown) -> value is string
```

Test whether a value is a name every supported tmux stores unchanged.

The refusal the mutating calls apply, offered ahead of them so a caller
validating configuration can report the bad field rather than catching a
`TypeError` from the call it fed.

## Example

```ts
import { isTmuxName } from "libtmux";
const value: unknown = "work";
const name = isTmuxName(value) ? value : undefined;
```
