editor.js/src/components/collaborative-editing/diff/types/operations/RemoveOperation.ts
Ilya Maroz a513e1079a
feat(collaborative): function for getting changes from string (#2101)
* 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
2022-09-06 11:32:38 +01:00

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;
}