import { createParagraphNear as originalCreateParagraphNear } from '@sse-editor/pm/commands' import { RawCommands } from '../types.js' declare module '@sse-editor/core' { interface Commands { createParagraphNear: { /** * Create a paragraph nearby. */ createParagraphNear: () => ReturnType } } } export const createParagraphNear: RawCommands['createParagraphNear'] = () => ({ state, dispatch }) => { return originalCreateParagraphNear(state, dispatch) }