Binary Raw - Docs
    Preparing search index...

    Type Alias DomainEvent

    DomainEvent:
        | { payload: LoadedFile; type: "file.loaded" }
        | { id: string; type: "file.closed" }
        | {
            current: SelectionState;
            previous: SelectionState;
            type: "selection.changed";
        }
        | { command: EditCommand; type: "edit.applied" }
        | { command: EditCommand; type: "edit.undone" }
        | { error: DomainError; type: "error.occurred" }

    Domain events that can be dispatched throughout the application. Discriminated union of all possible event types.