Skip to content

@jsvision/code-editor / CodeEditorControllerEvent

Type Alias: CodeEditorControllerEvent

CodeEditorControllerEvent = { kind: "presentation"; presentation: CodeEditorControllerPresentation; } | { kind: "document"; mutation: CodeEditorControllerMutationEvent; presentation: CodeEditorControllerPresentation; }

Defined in: code-editor/src/controller.ts:98

One coalesced controller change delivered to a terminal view.

Union Members

Type Literal

{ kind: "presentation"; presentation: CodeEditorControllerPresentation; }

kind

readonly kind: "presentation"

Identifies a render-only state transition.

presentation

readonly presentation: CodeEditorControllerPresentation

Latest immutable state for terminal projection.


Type Literal

{ kind: "document"; mutation: CodeEditorControllerMutationEvent; presentation: CodeEditorControllerPresentation; }

kind

readonly kind: "document"

Identifies one accepted source transaction.

mutation

readonly mutation: CodeEditorControllerMutationEvent

Exact transaction metadata delivered once to each live subscriber.

presentation

readonly presentation: CodeEditorControllerPresentation

Latest immutable state after the transaction.