Classification metadata for host-supplied remote operations.
- Package
@sheetwrite/core
- Source
packages/core/src/types/transaction.ts#L69
Members 2
commitReason
commitReason?: CommitReasontype CommitReason =
| "edit-blur"
| "edit-enter"
| "edit-tab"
| "edit-programmatic"
| "paste"
| "cut"
| "clear"
| "fill"
| "structure"
| "style"
| "replace"
| "undo"
| "redo"
| "api";type CommitReason =
| "edit-blur"
| "edit-enter"
| "edit-tab"
| "edit-programmatic"
| "paste"
| "cut"
| "clear"
| "fill"
| "structure"
| "style"
| "replace"
| "undo"
| "redo"
| "api";type CommitReason =
| "edit-blur"
| "edit-enter"
| "edit-tab"
| "edit-programmatic"
| "paste"
| "cut"
| "clear"
| "fill"
| "structure"
| "style"
| "replace"
| "undo"
| "redo"
| "api";The gesture/operation that produced a committed transaction. Consumers switching on reasons MUST keep a default branch — the union grows with new mutation features.API reference →;
localReplay Reapply a durable local mutation as dirty pending state rather than authoritative remote data.
Declaration
View full TypeScript declaration
export interface RemoteOperationOptions {
commitReason?: CommitReasontype CommitReason =
| "edit-blur"
| "edit-enter"
| "edit-tab"
| "edit-programmatic"
| "paste"
| "cut"
| "clear"
| "fill"
| "structure"
| "style"
| "replace"
| "undo"
| "redo"
| "api";type CommitReason =
| "edit-blur"
| "edit-enter"
| "edit-tab"
| "edit-programmatic"
| "paste"
| "cut"
| "clear"
| "fill"
| "structure"
| "style"
| "replace"
| "undo"
| "redo"
| "api";type CommitReason =
| "edit-blur"
| "edit-enter"
| "edit-tab"
| "edit-programmatic"
| "paste"
| "cut"
| "clear"
| "fill"
| "structure"
| "style"
| "replace"
| "undo"
| "redo"
| "api";The gesture/operation that produced a committed transaction. Consumers switching on reasons MUST keep a default branch — the union grows with new mutation features.API reference →;