UNPKG

@hocuspocus/common

Version:

shared code for multiple Hocuspocus packages

12 lines (11 loc) 462 B
import { Doc } from "yjs"; import { Schema } from "@tiptap/pm/model"; import type { Transformer } from "./types.ts"; declare class Prosemirror implements Transformer { defaultSchema: Schema; schema(schema: Schema): Prosemirror; fromYdoc(document: Doc, fieldName?: string | Array<string>): any; toYdoc(document: any, fieldName?: string | Array<string>, schema?: Schema): Doc; } export declare const ProsemirrorTransformer: Prosemirror; export {};