MCPcopy
hub / github.com/Effect-TS/effect / getParseIssueTitleAnnotation

Function getParseIssueTitleAnnotation

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

Source from the content-addressed store, hash-verified

1851 })
1852
1853const getParseIssueTitleAnnotation = (issue: ParseIssue): string | undefined =>
1854 getAnnotated(issue).pipe(
1855 Option.flatMap(AST.getParseIssueTitleAnnotation),
1856 Option.flatMapNullable((annotation) => annotation(issue)),
1857 Option.getOrUndefined
1858 )
1859
1860/** @internal */
1861export 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