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

Function getRefinementExpected

packages/effect/src/ParseResult.ts:1879–1886  ·  view source on GitHub ↗
(ast: AST.Refinement)

Source from the content-addressed store, hash-verified

1877
1878/** @internal */
1879export function getRefinementExpected(ast: AST.Refinement): string {
1880 return AST.getDescriptionAnnotation(ast).pipe(
1881 Option.orElse(() => AST.getTitleAnnotation(ast)),
1882 Option.orElse(() => AST.getAutoTitleAnnotation(ast)),
1883 Option.orElse(() => AST.getIdentifierAnnotation(ast)),
1884 Option.getOrElse(() => `{ ${ast.from} | filter }`)
1885 )
1886}
1887
1888function getDefaultTypeMessage(issue: Type): string {
1889 if (issue.message !== undefined) {

Callers 1

getDefaultTypeMessageFunction · 0.85

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected