# common.DaemonEpoch

- **Module:** common
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/libtmux/src/common.ts#L93
- **Page:** https://libtmux.org/en/ts/latest/reference/common-daemonepoch/

```ts
type DaemonEpoch = number & { readonly [daemonEpochBrand]: "daemon" }
```

Which run of the daemon a handle came from, counted from zero.

A restarted tmux on the same socket issues `%0` again to a different pane,
so an id from the previous run names nothing. Comparing epochs is what
catches that, and it is why [`SessionRef`](/en/ts/latest/reference/common-sessionref/) and friends carry one.
