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.

typealias libtmux-ts latest

WhereDocumentV1

Criteria as a portable document: which model, which version, and the criteria themselves.

Source and package
Qualified name
WhereDocumentV1
Module
selection
Package
libtmux
Source
packages/libtmux/src/selection.ts
type selection.WhereDocumentV1 = | { readonly model: "session"; readonly version: 1; readonly where: SessionWhere } | { readonly model: "window"; readonly version: 1; readonly where: WindowWhere } | { readonly model: "pane"; readonly version: 1; readonly where: PaneWhere } | { readonly model: "client"; readonly version: 1; readonly where: ClientWhere }

Description#

The version is in the payload because these cross a process boundary — an MCP client, a config file — where the reader's library may be older than the writer's. Nothing widens 1 in place; a new shape gets a new number.

Esc

Type to search.

Reference previewOpen reference