export class TfsChangeType { private static readonly ADD = "add" ; private static readonly BRANCH = "branch" ; private static readonly DELETE = "delete" ; private static readonly EDIT = "edit" ; private static readonly UNDELETE = "undelete" ; private static readonly RENAME = "rename" ; public static isDeleted ( changeType ) { return changeType . indexOf ( TfsChangeType . DELETE ) !== - 1 ; } public static isAdded ( changeType ) { return changeType . indexOf ( TfsChangeType . ADD ) !== - 1 || changeType . indexOf ( TfsChangeType . BRANCH ) !== - 1 || changeType . indexOf ( TfsChangeType . UNDELETE ) !== - 1 ; } public static isRenamed ( changeType ) { return changeType . indexOf ( TfsChangeType . RENAME ) !== - 1 ; } public static isModified ( changeType ) { return changeType . indexOf ( TfsChangeType . EDIT ) !== - 1 ; } }