mirror of
https://github.com/codex-team/editor.js
synced 2024-06-09 17:32:31 +02:00
24 lines
422 B
TypeScript
24 lines
422 B
TypeScript
|
/**
|
||
|
* Event detail for block relocation
|
||
|
*/
|
||
|
export interface MoveEventDetail {
|
||
|
/**
|
||
|
* index the block was moved from
|
||
|
*/
|
||
|
fromIndex: number;
|
||
|
/**
|
||
|
* index the block was moved to
|
||
|
*/
|
||
|
toIndex: number;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Move event for block relocation
|
||
|
*/
|
||
|
export interface MoveEvent extends CustomEvent {
|
||
|
/**
|
||
|
* Override detail property of CustomEvent by MoveEvent hook
|
||
|
*/
|
||
|
readonly detail: MoveEventDetail;
|
||
|
}
|