refactoring
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { joinBackward as originalJoinBackward } from 'prosemirror-commands'
|
||||
import { Command, Commands } from '../types'
|
||||
|
||||
/**
|
||||
* Join two nodes backward.
|
||||
*/
|
||||
export const joinBackward: Commands['joinBackward'] = () => ({ state, dispatch }) => {
|
||||
return originalJoinBackward(state, dispatch)
|
||||
}
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface Commands {
|
||||
/**
|
||||
* Join two nodes backward.
|
||||
*/
|
||||
joinBackward: () => Command,
|
||||
}
|
||||
}
|
||||
|
||||
export const joinBackward: Commands['joinBackward'] = () => ({ state, dispatch }) => {
|
||||
return originalJoinBackward(state, dispatch)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user