add shortform to keys

This commit is contained in:
Philipp Kühn
2020-04-13 00:16:12 +02:00
parent f29b39238b
commit e03d108423
5 changed files with 17 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
import { Editor } from './Editor'
import { Editor, Command } from './Editor'
export default abstract class Extension {
@@ -39,11 +39,11 @@ export default abstract class Extension {
return []
}
keys(): { [key: string]: any } {
keys(): string | { [key: string]: Function } {
return {}
}
commands(): { [key: string]: any } {
commands(): { [key: string]: Command } {
return {}
}