add basic ChainedCommands type

This commit is contained in:
Philipp Kühn
2020-09-21 21:40:44 +02:00
parent 4c392d5759
commit 778e064979
3 changed files with 21 additions and 8 deletions

View File

@@ -9,6 +9,12 @@ declare module '../Editor' {
}
}
// declare module '../Editor' {
// interface Commands {
// deleteSelection: DeleteSelectionCommand,
// }
// }
export const deleteSelection: DeleteSelectionCommand = () => ({ state, dispatch }) => {
return originalDeleteSelection(state, dispatch)
}