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

Function stringField

packages/opencode/src/cli/error.ts:18–20  ·  view source on GitHub ↗
(input: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

16}
17
18function stringField(input: Record<string, unknown>, key: string): string | undefined {
19 return typeof input[key] === "string" ? input[key] : undefined
20}
21
22function configIssues(input: Record<string, unknown>): ConfigIssue[] {
23 return Array.isArray(input.issues)

Callers 1

FormatErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected