Files
tiptap/packages/core/src/commands/undoInputRule.ts
Philipp Kühn 55ff908423 refactoring
2021-02-10 18:05:02 +01:00

16 lines
404 B
TypeScript

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