MCPcopy Index your code
hub / github.com/anomalyco/opencode / named

Function named

packages/tui/src/util/error.ts:82–84  ·  view source on GitHub ↗
(input: unknown, name: string)

Source from the content-addressed store, hash-verified

80}
81
82function named(input: unknown, name: string) {
83 return isRecord(input) && (input.name === name || input._tag === name)
84}
85
86function configData(input: unknown, tag: string) {
87 if (!isRecord(input)) return undefined

Callers 1

cliErrorMessageFunction · 0.70

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected