CollabReferenceCollab clientClasses

Commit

Class: Commit

Defined in: node_modules/.store/@stepwisehq-prosemirror-collab-commit-virtual-03dc2b656d/package/dist/collab-commit.d.ts:14

Constructors

Constructor

new Commit(
   version: number,
   ref: string,
   steps: Step[]): Commit;

Defined in: node_modules/.store/@stepwisehq-prosemirror-collab-commit-virtual-03dc2b656d/package/dist/collab-commit.d.ts:18

Parameters

version

number

ref

string

steps

Step[]

Returns

Commit

Properties

ref

readonly ref: string;

Defined in: node_modules/.store/@stepwisehq-prosemirror-collab-commit-virtual-03dc2b656d/package/dist/collab-commit.d.ts:16


steps

readonly steps: Step[];

Defined in: node_modules/.store/@stepwisehq-prosemirror-collab-commit-virtual-03dc2b656d/package/dist/collab-commit.d.ts:17


version

readonly version: number;

Defined in: node_modules/.store/@stepwisehq-prosemirror-collab-commit-virtual-03dc2b656d/package/dist/collab-commit.d.ts:15

Methods

toJSON()

toJSON(): CommitJSON;

Defined in: node_modules/.store/@stepwisehq-prosemirror-collab-commit-virtual-03dc2b656d/package/dist/collab-commit.d.ts:19

Returns

CommitJSON


toSchema()

toSchema(schema: Schema): Commit;

Defined in: node_modules/.store/@stepwisehq-prosemirror-collab-commit-virtual-03dc2b656d/package/dist/collab-commit.d.ts:21

Return a new commit with the steps linked to the supplied schema.

Parameters

schema

Schema

Returns

Commit


FromJSON()

static FromJSON(schema: Schema, spec: CommitJSON): Commit;

Defined in: node_modules/.store/@stepwisehq-prosemirror-collab-commit-virtual-03dc2b656d/package/dist/collab-commit.d.ts:23

Return a commit based on the supplied JSON and schema.

Parameters

schema

Schema

spec

CommitJSON

Returns

Commit

On this page