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