paths-filter/src/file.ts
2024-03-28 10:12:24 -07:00

22 lines
377 B
TypeScript

export interface FileStatus {
filename: string
status: ChangeStatus
}
export interface FileNumstat {
filename: string
additions: number
deletions: number
}
export type File = FileStatus & FileNumstat
export enum ChangeStatus {
Added = 'added',
Copied = 'copied',
Deleted = 'deleted',
Modified = 'modified',
Renamed = 'renamed',
Unmerged = 'unmerged'
}