16 lines
404 B
TypeScript
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)
|
|
}
|