Skip to content

Type Editor


Type Editor / @type-editor/collab / get-version / getVersion

Function: getVersion()

ts
function getVersion(state): number;

Defined in: get-version.ts:15

Gets the version up to which the collab plugin has synced with the central authority.

Parameters

ParameterTypeDescription
statePmEditorStateThe current editor state with the collab plugin enabled.

Returns

number

The current version number of the collaborative editing state.

Throws

Error if the collab plugin is not installed.