errors.LibTmuxErrorCode
TypeScript
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- errors
- Package
- libtmux
- Source
- packages/libtmux/src/errors.ts
-
Every value
LibTmuxError.codecan hold.A union rather than
stringso a comparison against a name this package does not have is a type error rather than a branch that never runs.Each class declares this type rather than its own literal because the hierarchy is three deep in places —
NoMatchErrorextendsObjectNotFoundError— and a literal on the parent makes the child's declaration an illegal override.instanceofis the narrowing tool; this is the one that survives a bundler and a serialization round trip.
0 declared, 0 inherited