rename Commands to RawCommands

This commit is contained in:
Philipp Kühn
2021-02-16 18:36:37 +01:00
parent 381bc0ce49
commit a705134998
51 changed files with 108 additions and 110 deletions

View File

@@ -1,5 +1,5 @@
import { selectAll as originalSelectAll } from 'prosemirror-commands'
import { Command, Commands } from '../types'
import { Command, RawCommands } from '../types'
declare module '@tiptap/core' {
interface AllCommands {
@@ -12,6 +12,6 @@ declare module '@tiptap/core' {
}
}
export const selectAll: Commands['selectAll'] = () => ({ state, dispatch }) => {
export const selectAll: RawCommands['selectAll'] = () => ({ state, dispatch }) => {
return originalSelectAll(state, dispatch)
}