types.isTmuxName
TypeScript
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- types
- Package
- libtmux
- Source
- packages/libtmux/src/types.ts
-
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
TypeErrorfrom the call it fed.Examples
import { isTmuxName } from "libtmux";const value: unknown = "work";const name = isTmuxName(value) ? value : undefined;
0 declared, 0 inherited