MCPcopy Create free account
hub / github.com/anomalyco/opencode / setOptionIfSupported

Function setOptionIfSupported

packages/app/src/utils/runtime-adapters.ts:20–23  ·  view source on GitHub ↗
(value: unknown, key: string, next: unknown)

Source from the content-addressed store, hash-verified

18}
19
20export const setOptionIfSupported = (value: unknown, key: string, next: unknown) => {
21 if (!hasSetOption(value)) return
22 value.setOption(key, next)
23}
24
25export const getHoveredLinkText = (value: unknown) => {
26 if (!isRecord(value)) return

Callers 2

TerminalFunction · 0.90

Calls 1

hasSetOptionFunction · 0.85

Tested by

no test coverage detected