mirror of
https://github.com/codex-team/editor.js
synced 2024-06-08 08:52:15 +02:00
a513e1079a
* create function for getting changes from a string * remove useless variables * add more test cases * refactor: return array of operations * refactor: rename function, conditions, add docs * refactor: use interfeces, move them to separate file, add comments * refactor: rename test cases * refactor: rename test cases * refactor: change types schema * refactor: rename function * test: add the case for multiple changes
10 lines
252 B
TypeScript
10 lines
252 B
TypeScript
import { Operation } from '../Operation';
|
|
import { OperationType } from '../OperationType';
|
|
|
|
/**
|
|
* Operation of removing some data
|
|
*/
|
|
export interface RemoveOperation<DATA_TYPE = string> extends Operation<DATA_TYPE> {
|
|
type: OperationType.Remove;
|
|
}
|