# types.AbortLike

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/libtmux/src/types.ts#L903
- **Page:** https://libtmux.org/en/ts/latest/reference/types-abortlike/

The part of [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) this package uses.

Typed structurally rather than as the global, because [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) comes
from the DOM or Node type libraries and naming it would make these public
declarations require one. A real [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) satisfies it.

## Members

### Other members

- [`aborted`](/en/ts/latest/reference/types-abortlike-aborted/) (property)
- [`addEventListener`](/en/ts/latest/reference/types-abortlike-addeventlistener/) (method)
- [`reason`](/en/ts/latest/reference/types-abortlike-reason/) (property): Why the caller abandoned the command, when they said.
- [`removeEventListener`](/en/ts/latest/reference/types-abortlike-removeeventlistener/) (method)
