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

Function formatRefinementKind

packages/effect/src/ParseResult.ts:1800–1807  ·  view source on GitHub ↗
(kind: Refinement["kind"])

Source from the content-addressed store, hash-verified

1798}
1799
1800const formatRefinementKind = (kind: Refinement["kind"]): string => {
1801 switch (kind) {
1802 case "From":
1803 return "From side refinement failure"
1804 case "Predicate":
1805 return "Predicate refinement failure"
1806 }
1807}
1808
1809const getAnnotated = (issue: ParseIssue): Option.Option<AST.Annotated> =>
1810 "ast" in issue ? Option.some(issue.ast) : Option.none()

Callers 1

formatTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected