mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
10 lines
359 B
TypeScript
10 lines
359 B
TypeScript
|
import type { FileDiff, FileRemoved, FileRenamed } from '../services/types/file'
|
||
|
|
||
|
export function isFileRenamed(fileDiff: FileDiff): fileDiff is FileRenamed {
|
||
|
return (fileDiff as FileRenamed).operation === 'renamed'
|
||
|
}
|
||
|
|
||
|
export function isFileRemoved(fileDiff: FileDiff): fileDiff is FileRemoved {
|
||
|
return (fileDiff as FileRemoved).operation === 'removed'
|
||
|
}
|