# server.Server.versionAtLeast

- **Module:** server
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/server.ts#L1209
- **Page:** https://libtmux.org/en/ts/latest/reference/server-server-versionatleast/

```
async versionAtLeast(minimum: string): Promise<boolean>
```

Whether this server is at least `minimum`, written the way tmux writes it.

This is how a caller gates on a feature that arrived in a known release
without parsing `#{`[`version`](/en/ts/latest/reference/server-server-version/)`}` themselves. A named development build such
as `next-3.9` has not shipped the release it names: it is at least
`3.8`, but not at least `3.9`. A candidate such as `X.Y-rcN` ranks the
same way, below `X.Y` and above the release before it. `minimum` must be a
form tmux prints, such as `3.7a`, or the call throws a [`TypeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError).

## Examples

```ts
if (await server.versionAtLeast("3.5")) {
  await server.setHook("command-error", "display-message 'a command failed'");
}
```

## Parameters

- `minimum` (`string`)
