Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

types.isTmuxName

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
types
Package
libtmux
Source
packages/libtmux/src/types.ts
isTmuxName ( value : : unknown ) → value is string
function [source]
function [source]
isTmuxName

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.

Examples

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

0 declared, 0 inherited

Esc

Type to search.