isTmuxName
Test whether a value is a name every supported tmux stores unchanged.
Source and package
- Qualified name
-
isTmux Name - Module
- types
- Package
- libtmux
- Source
- packages/libtmux/src/types.ts
-
Description#
The refusal the mutating calls apply, offered ahead of them so a caller validating configuration can report the bad field rather than catching a
TypeErrorfrom the call it fed.Examples#
import { isTmuxName } from "libtmux";const value: unknown = "work";const name = isTmuxName(value) ? value : undefined;