import { undoInputRule as originalUndoInputRule } from 'prosemirror-inputrules' import { RawCommands } from '../types' declare module '@tiptap/core' { interface Commands { undoInputRule: { /** * Undo an input rule. */ undoInputRule: () => ReturnType, } } } export const undoInputRule: RawCommands['undoInputRule'] = () => ({ state, dispatch }) => { return originalUndoInputRule(state, dispatch) }