improve type handling for commands

This commit is contained in:
Philipp Kühn
2020-04-21 23:22:27 +02:00
parent 3deae61a15
commit 91d4aa7e39
13 changed files with 45 additions and 35 deletions

View File

@@ -34,11 +34,11 @@ export default class History extends Extension {
commands(): CommandSpec {
return {
undo: (next, { view }) => {
undo: (next, { view }) => () => {
undo(view.state, view.dispatch)
next()
},
redo: (next, { view }) => {
redo: (next, { view }) => () => {
redo(view.state, view.dispatch)
next()
},