mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
refactor(editor): correct type for keystroke
This commit is contained in:
@@ -23,8 +23,6 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
type Keystroke = string | string[];
|
||||
|
||||
declare module "ckeditor5" {
|
||||
interface Editor {
|
||||
getSelectedHtml(): string;
|
||||
@@ -39,10 +37,10 @@ declare module "ckeditor5" {
|
||||
enabled: boolean;
|
||||
},
|
||||
moveBlockUp?: {
|
||||
keystroke: Keystroke;
|
||||
keystroke: string[];
|
||||
},
|
||||
moveBlockDown?: {
|
||||
keystroke: Keystroke;
|
||||
keystroke: string[];
|
||||
},
|
||||
clipboard?: {
|
||||
copy(text: string): void;
|
||||
|
||||
Reference in New Issue
Block a user