Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-ts latest

splitSize

Authenticate tmux split geometry or throw.

Source and package
Qualified name
splitSize
Module
types
Package
libtmux
Source
packages/libtmux/src/types.ts
function splitSize(value: number): SplitCellSizefunction splitSize( value: SplitPercentage, ): SplitPercentagefunction splitSize(value: SplitSize): SplitSizefunction splitSize(value: number | string): SplitSize

Examples#

import { splitSize } from "libtmux";
const size = splitSize(20);
Parameters
Raises
  • TypeError – when a cell count is negative, fractional, or above 2147483647, or when a percentage is not a canonical whole 0% to 100%. for splitSize(value) [overload 1]

Esc

Type to search.

Reference previewOpen reference