# types.splitSize

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/types.ts#L236
- **Page:** https://libtmux.org/en/ts/latest/reference/types-splitsize-1ync/

```
types.splitSize(value: : number) -> SplitCellSize
```

Authenticate tmux split geometry or throw.

## Raises

- `TypeError`: when a cell count is negative, fractional, or above 2147483647, or when a percentage is not a canonical whole `0%` to `100%`.

## Example

```ts
import { splitSize } from "libtmux";
const size = splitSize(20);
```
