DevtoolsMessage
typeUnion 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 | StoreRegistryHandshakeRequest | HandshakeResponse | StoreConnected | StoreDisconnected | StoreEvent | StateSnapshot | StoreMetrics | StoreSubscriptions | RequestState | RequestSubscriptions | RequestMetrics | TimeTravel | EventReplay | EmitToStore | StoreRegistry