Skip to content

Type Editor


Type Editor / @type-editor/collab / sendable-steps / sendableSteps

Function: sendableSteps()

ts
function sendableSteps(state): SendableSteps;

Defined in: sendable-steps.ts:23

Provides data describing the editor's unconfirmed steps, which need to be sent to the central authority. Returns null when there is nothing to send.

The origins property holds the original transforms that produced each step. This can be useful for looking up timestamps and other metadata for the steps, but note that the steps may have been rebased, whereas the origin transforms are still the old, unchanged objects.

Parameters

ParameterTypeDescription
statePmEditorStateThe current editor state with the collab plugin enabled.

Returns

SendableSteps

An object containing sendable steps data, or null if there's nothing to send.