UNPKG

@hocuspocus/transformer

Version:

hocuspocus transformation utilities

7 lines (5 loc) 189 B
import type { Doc } from "yjs"; export interface Transformer { fromYdoc: (document: Doc, fieldName?: string | Array<string>) => any; toYdoc: (document: any, fieldName: string) => Doc; }