rename Commands to RawCommands

This commit is contained in:
Philipp Kühn
2021-02-16 18:36:37 +01:00
parent 381bc0ce49
commit a705134998
51 changed files with 108 additions and 110 deletions

View File

@@ -2,7 +2,7 @@ import { Plugin, Transaction } from 'prosemirror-state'
import { InputRule } from 'prosemirror-inputrules'
import { Editor } from './Editor'
import mergeDeep from './utilities/mergeDeep'
import { GlobalAttributes, Commands } from './types'
import { GlobalAttributes, RawCommands } from './types'
export interface ExtensionConfig<Options = any> {
/**
@@ -23,12 +23,12 @@ export interface ExtensionConfig<Options = any> {
}) => GlobalAttributes | {},
/**
* Commands
* Raw
*/
addCommands?: (this: {
options: Options,
editor: Editor,
}) => Partial<Commands>,
}) => Partial<RawCommands>,
/**
* Keyboard shortcuts