(type: Kind)
| 30 | } |
| 31 | |
| 32 | function status(type: Kind): "added" | "deleted" | "modified" { |
| 33 | if (type === "add") return "added" |
| 34 | if (type === "delete") return "deleted" |
| 35 | return "modified" |
| 36 | } |
| 37 | |
| 38 | export function patchFile(raw: unknown): ApplyPatchFile | undefined { |
| 39 | if (!raw || typeof raw !== "object") return |
no outgoing calls
no test coverage detected