Hand-written Markdown Guide for using @gurezo/web-serial-rxjs. For exhaustive public API types, parameters, and return values, see the English TypeDoc API Reference.
The canonical documentation layout is defined in ARCHITECTURE.md.
SerialSession public surface, role of state$ / errors$, minimal sampleSerialError, type supplements (not a TypeDoc substitute)When migrating existing code:
state$ discriminated union, SerialSessionStatus, context.cause| Document | Use it for |
|---|---|
| Overview | Public surface quick reference, feature summary, minimal sample |
| Quick Start | Basic flow from installation through disconnect |
| Advanced Usage | Application patterns and RxJS recipes |
| API concepts and design notes | Options, error codes, and type tables |
| v2 → v3 Migration | Steps to adopt v3 canonical API |
| v1 → v2 Migration | Replacements for removed v1 APIs |
| Phase 5 (archive) | Legacy v1 documentation reference |
state$ — canonical lifecycle source. Branch on state.status with SerialSessionStatus; use state.portInfo when connectederrors$ — canonical fatal / non-fatal error event channel. Branch with SerialError.is(SerialErrorCode.*)isConnected$, portInfo$, getPortInfo() remain in v3.x; prefer state$ narrowing in new code