mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
14 lines
375 B
TypeScript
14 lines
375 B
TypeScript
import {
|
|
CommentOperation,
|
|
DeleteOperation,
|
|
InsertOperation,
|
|
Operation,
|
|
} from '../../../types/change'
|
|
|
|
export const isInsertOperation = (op: Operation): op is InsertOperation =>
|
|
'i' in op
|
|
export const isCommentOperation = (op: Operation): op is CommentOperation =>
|
|
'c' in op
|
|
export const isDeleteOperation = (op: Operation): op is DeleteOperation =>
|
|
'd' in op
|