MCPcopy Create free account
hub / github.com/Effect-TS/effect / isIssue

Function isIssue

packages/effect/src/SchemaIssue.ts:51–53  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

49 * @since 4.0.0
50 */
51export function isIssue(u: unknown): u is Issue {
52 return hasProperty(u, TypeId) && u[TypeId] === TypeId
53}
54
55/**
56 * Returns `true` when an issue contains an input reported by the schema parser.

Callers 1

makeFilterIssueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected