add can method

This commit is contained in:
Philipp Kühn
2020-11-02 14:29:58 +01:00
parent 85c1a8ace9
commit 8f4abb720a
3 changed files with 24 additions and 9 deletions

View File

@@ -23,6 +23,7 @@ export type Command = (props: {
editor: Editor,
tr: Transaction,
commands: SingleCommands,
can: () => SingleCommands & { chain: () => ChainedCommands },
chain: () => ChainedCommands,
state: EditorState,
view: EditorView,