Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/automerge_wasm/index.d.ts>API

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Go to Latest
interface API
import { type API } from "https://deno.land/x/automerge_wasm@0.15.0/index.d.ts";

Methods

create(options?: InitOptions): Automerge
load(data: Uint8Array, options?: LoadOptions): Automerge
encodeChange(change: ChangeToEncode): Change
decodeChange(change: Change): DecodedChange
initSyncState(): SyncState
encodeSyncMessage(message: DecodedSyncMessage): SyncMessage
decodeSyncMessage(msg: SyncMessage): DecodedSyncMessage
encodeSyncState(state: SyncState): Uint8Array
decodeSyncState(data: Uint8Array): SyncState
exportSyncState(state: SyncState): JsSyncState
importSyncState(state: JsSyncState): SyncState