Delete named schema error wrapper (#27066)

This commit is contained in:
Kit Langton
2026-05-12 12:04:28 -04:00
committed by GitHub
parent 257fcafc83
commit c7d8b0d565
7 changed files with 38 additions and 46 deletions

View File

@@ -1,9 +0,0 @@
import { Schema } from "effect"
import { NamedError } from "@opencode-ai/core/util/error"
/**
* Create a Schema-backed NamedError-shaped class.
*/
export function namedSchemaError<Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) {
return NamedError.create(tag, fields)
}