refactor(ckeditor5): add explicit types

This commit is contained in:
Elian Doran 2025-05-29 13:24:32 +03:00
parent 3eddb55aa2
commit b5f2c2d557
No known key found for this signature in database

View File

@ -2,7 +2,7 @@
* https://github.com/TriliumNext/Notes/issues/1002
*/
import { Command, DocumentSelection, Element, Plugin } from 'ckeditor5';
import { Command, DocumentSelection, Element, Node, Plugin } from 'ckeditor5';
export default class MoveBlockUpDownPlugin extends Plugin {
@ -30,8 +30,8 @@ export default class MoveBlockUpDownPlugin extends Plugin {
abstract class MoveBlockUpDownCommand extends Command {
abstract getSelectedBlocks(selection: DocumentSelection);
abstract getSibling(selectedBlock: Element);
abstract getSelectedBlocks(selection: DocumentSelection): Element[];
abstract getSibling(selectedBlock: Element): Node | null;
abstract get offset(): "before" | "after";
override refresh() {