refactoring

This commit is contained in:
Philipp Kühn
2020-10-22 09:42:28 +02:00
parent 5a2417fa53
commit 9697d585fe
6 changed files with 51 additions and 112 deletions

View File

@@ -128,6 +128,12 @@ export interface ExtensionSpec<Options = {}, Commands = {}> {
options: Options,
editor: Editor,
}) => Commands,
createShortcuts?: (this: {
options: Options,
editor: Editor,
}) => {
[key: string]: any
},
}
export type Extension = Required<Omit<ExtensionSpec, 'defaultOptions'> & {