mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 02:40:23 +02:00
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
|
import { BlockMutationEvent, BlockMutationType } from '../../../../types';
|
||
|
|
||
|
/**
|
||
|
* Simplified version of the BlockMutationEvent with optional fields that could be used in tests
|
||
|
*/
|
||
|
export default interface PartialBlockMutationEvent {
|
||
|
/**
|
||
|
* Event type
|
||
|
*/
|
||
|
type?: BlockMutationType,
|
||
|
|
||
|
/**
|
||
|
* Details with partial properties
|
||
|
*/
|
||
|
detail?: Partial<BlockMutationEvent['detail']>
|
||
|
}
|