DevtoolsMessage

type
messages.ts:378

Union of all DevTools protocol messages. Discriminated on the type field for type-safe routing.

Use a switch statement on the type field for exhaustive handling:

Definition

type
type DevtoolsMessage = HandshakeRequest | HandshakeResponse | StoreConnected | StoreDisconnected | StoreEvent | StateSnapshot | StoreMetrics | StoreSubscriptions | RequestState | RequestSubscriptions | RequestMetrics | TimeTravel | EventReplay | EmitToStore | StoreRegistry

HandshakeRequest | HandshakeResponse | StoreConnected | StoreDisconnected | StoreEvent | StateSnapshot | StoreMetrics | StoreSubscriptions | RequestState | RequestSubscriptions | RequestMetrics | TimeTravel | EventReplay | EmitToStore | StoreRegistry