refactoring

This commit is contained in:
Philipp Kühn
2020-09-22 15:22:24 +02:00
parent 119fdd0dff
commit 8ca8e041fd
4 changed files with 8 additions and 37 deletions

View File

@@ -19,16 +19,14 @@ import Mark from './Mark'
import ComponentRenderer from './ComponentRenderer'
import defaultPlugins from './plugins'
import * as commands from './commands'
import { deleteSelection } from 'prosemirror-commands'
export type Command = (props: {
editor: Editor
tr: Transaction
// TODO: find correct type
commands: any
editor: Editor,
tr: Transaction,
commands: SingleCommands,
state: EditorState,
view: EditorView,
dispatch: (args?: any) => any
dispatch: (args?: any) => any,
}) => boolean
export interface CommandSpec {