T
Command
testedA command in the ProseMirror style: returns `true` when applicable (and dispatches when `dispatch` is provided), `false` otherwise so the keymap can fall through to native behavior. Called without `dispatch` it is a dry run for computing UI enabled/active state.
Signature
ts
export type Command = (state: EditorState, dispatch?: Dispatch, view?: CommandView) => boolean;