Skip to content

Type Editor


Type Editor / @type-editor/changeset / types/TokenEncoder

types/TokenEncoder

Interfaces

InterfaceDescription

TokenEncoder

A token encoder can be passed when creating a ChangeSet in order to influence the way the library runs its diffing algorithm. The encoder determines how document tokens (such as nodes and characters) are encoded and compared.

Note that both the encoding and the comparison may run a lot, and doing non-trivial work in these functions could impact performance.