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