refactoring

This commit is contained in:
Philipp Kühn
2020-09-22 23:34:18 +02:00
parent 389756d258
commit 9a8ce8c5fb
3 changed files with 11 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
import cloneDeep from 'clone-deep'
import { Plugin } from 'prosemirror-state'
import { Editor, CommandSpec } from './Editor'
import { Editor, CommandsSpec } from './Editor'
type AnyObject = {
[key: string]: any
@@ -26,7 +26,7 @@ export interface ExtensionProps<Options> {
export interface ExtensionMethods<Props, Options> {
name: string
options: Options
commands: (params: Props) => CommandSpec
commands: (params: Props) => CommandsSpec
inputRules: (params: Props) => any[]
pasteRules: (params: Props) => any[]
keys: (params: Props) => {