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

Function taggedErrorFields

packages/httpapi-codegen/src/index.ts:940–943  ·  view source on GitHub ↗
(schema: Schema.Top)

Source from the content-addressed store, hash-verified

938}
939
940function taggedErrorFields(schema: Schema.Top) {
941 const fields = declaredErrorFields(schema)
942 return fields?.key === "_tag" ? fields : undefined
943}
944
945function declaredErrorFields(schema: Schema.Top) {
946 if (!SchemaAST.isDeclaration(schema.ast) || schema.ast.annotations?.["~effect/Schema/Class"] === undefined) {

Callers 2

assertPortableFunction · 0.85
renderSchemasFunction · 0.85

Calls 1

declaredErrorFieldsFunction · 0.85

Tested by

no test coverage detected