mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
migrate ui-components from flow to typescript
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { BaseContext, File, Hunk } from './DiffTypes';
|
||||
import { BaseContext, File, Hunk } from "./DiffTypes";
|
||||
|
||||
export function getPath(file: File) {
|
||||
if (file.type === 'delete') {
|
||||
if (file.type === "delete") {
|
||||
return file.oldPath;
|
||||
}
|
||||
return file.newPath;
|
||||
|
||||
Reference in New Issue
Block a user