travels3.0
API ReferenceType Aliases

TravelsKnownEventType

Travels 3.0.1. Travels 3 API reference for TravelsKnownEventType.

TravelsKnownEventType = "setState" | "recordPatches" | "archive" | "transaction" | "go" | "reset" | "rebase" | "replaceStateWithoutHistory"

Defined in: src/type.ts:279

Unified event published to subscribe() listeners and the devtools hook.

Remarks

The type union is open: minor releases may add new event types, as 2.1.0 added 'recordPatches'. Keep a default branch when switching on event.type instead of asserting exhaustiveness with never.

On this page