Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ iife
Function
iife
packages/opencode/src/util/iife.ts:1–3 ·
view source on GitHub ↗
(fn: () => T)
Source
from the content-addressed store, hash-verified
1
export
function
iife<T>(fn: () => T) {
2
return
fn()
3
}
Callers
11
iife.test.ts
File · 0.90
fetch
Function · 0.90
parseToolParams
Function · 0.90
toModelOutput
Function · 0.90
retryable
Function · 0.90
parseJSON
Function · 0.90
custom
Function · 0.90
provider.ts
File · 0.90
resolveSDK
Function · 0.90
message
Function · 0.90
variants
Function · 0.90
Calls
1
fn
Function · 0.50
Tested by
no test coverage detected