Type Editor / @type-editor/changeset / default-encoder / DefaultEncoder
Variable: DefaultEncoder
ts
const DefaultEncoder: TokenEncoder<number | string>;Defined in: default-encoder.ts:12
The default token encoder for diff operations.
- Node start tokens are encoded as strings containing the node name
- Characters are encoded as their character code
- Node end tokens are encoded as negative type IDs