| 1 | import * as Predicate from "../Predicate.ts" |
| 2 | import type { SchemaError } from "../Schema.ts" |
| 3 | |
| 4 | export const SchemaErrorTypeId = "~effect/Schema/SchemaError" |
| 5 | |
| 6 | export function isSchemaError(u: unknown): u is SchemaError { |
| 7 | return Predicate.hasProperty(u, SchemaErrorTypeId) && u[SchemaErrorTypeId] === SchemaErrorTypeId |
| 8 | } |