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

Function isTaggedError

packages/opencode/src/cli/error.ts:7–9  ·  view source on GitHub ↗
(error: unknown, tag: string)

Source from the content-addressed store, hash-verified

5type ConfigIssue = { message: string; path: string[] }
6
7function isTaggedError(error: unknown, tag: string): error is Record<string, unknown> {
8 return isRecord(error) && error._tag === tag
9}
10
11function configData(input: unknown, tag: string): Record<string, unknown> | undefined {
12 if (!isRecord(input)) return undefined

Callers 1

FormatErrorFunction · 0.85

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected