alinea
Version:
[](https://npmjs.org/package/alinea) [](https://packagephobia.com/result?p=alinea)
12 lines (11 loc) • 435 B
TypeScript
import * as Y from 'yjs';
import { EntryRow } from './EntryRow.js';
import { Type } from './Type.js';
export declare const ROOT_KEY = "#root";
export declare function createYDoc(type: Type, entry: EntryRow | null): Y.Doc;
export declare function applyEntryData(doc: Y.Doc, type: Type, entry: EntryRow): void;
export declare function parseYDoc(type: Type, doc: Y.Doc): {
path: any;
title: any;
data: Record<string, any>;
};