# window.Window.split

- **Module:** window.Window
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/window.ts#L272
- **Page:** https://libtmux.org/en/ts/latest/reference/window-window-split/

```
window.Window.split(options: : SplitOptions) -> Promise<Pane>
```

Split this window and resolve the created pane.

## Raises

- `TypeError`: when `options` combines `direction` with `vertical`.

## Example

```ts
import { PaneDirection } from "libtmux";
const created = await window.split({ direction: PaneDirection.Below });
created.id;
```
