import type { ReducerEvent } from './reducer_event.ts'; import type { ReducerEventInfo } from './reducers.ts'; type WithId = { /** * A client-generated id to distinguish between different events. */ id: string; }; export type Event = WithId & ( | { tag: 'Reducer'; value: ReducerEvent } | { tag: 'SubscribeApplied' } | { tag: 'UnsubscribeApplied' } | { tag: 'Error'; value: Error } | { tag: 'Transaction' } );