import { createNode } from '@tiptap/core' const Document = createNode({ name: 'document', topNode: true, content: '(block|list)+', }) export default Document declare module '@tiptap/core/src/Editor' { interface AllExtensions { Document: typeof Document, } }