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

Function getParseIssueTitleAnnotation

packages/effect/src/ParseResult.ts:1871–1876  ·  view source on GitHub ↗
(issue: ParseIssue)

Source from the content-addressed store, hash-verified

1869 })
1870
1871const getParseIssueTitleAnnotation = (issue: ParseIssue): string | undefined =>
1872 getAnnotated(issue).pipe(
1873 Option.flatMap(AST.getParseIssueTitleAnnotation),
1874 Option.flatMapNullable((annotation) => annotation(issue)),
1875 Option.getOrUndefined
1876 )
1877
1878/** @internal */
1879export function getRefinementExpected(ast: AST.Refinement): string {

Callers 2

formatTypeMessageFunction · 0.85
getParseIssueTitleFunction · 0.85

Calls 2

getAnnotatedFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected