TypeScript·Advanced·Conceptual·1 min read
What is a nested state machine?
Short interview answer
It composes smaller discriminated states for concerns with different transitions instead of multiplying every combination into one unwieldy top-level union.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.