Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ patchFiles
Function
patchFiles
packages/session-ui/src/components/apply-patch-file.ts:75–78 ·
view source on GitHub ↗
(raw: unknown)
Source
from the content-addressed store, hash-verified
73
}
74
75
export
function
patchFiles(raw: unknown) {
76
if
(!Array.isArray(raw))
return
[]
77
return
raw.map(patchFile).filter((file): file is ApplyPatchFile => !!file)
78
}
Callers
2
apply-patch-file.test.ts
File · 0.90
render
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected