MCPcopy 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

1export function iife<T>(fn: () => T) {
2 return fn()
3}

Callers 11

iife.test.tsFile · 0.90
fetchFunction · 0.90
parseToolParamsFunction · 0.90
toModelOutputFunction · 0.90
retryableFunction · 0.90
parseJSONFunction · 0.90
customFunction · 0.90
provider.tsFile · 0.90
resolveSDKFunction · 0.90
messageFunction · 0.90
variantsFunction · 0.90

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected