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

Function getRefinementExpected

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

Source from the content-addressed store, hash-verified

1859
1860/** @internal */
1861export function getRefinementExpected(ast: AST.Refinement): string {
1862 return AST.getDescriptionAnnotation(ast).pipe(
1863 Option.orElse(() => AST.getTitleAnnotation(ast)),
1864 Option.orElse(() => AST.getAutoTitleAnnotation(ast)),
1865 Option.orElse(() => AST.getIdentifierAnnotation(ast)),
1866 Option.getOrElse(() => `{ ${ast.from} | filter }`)
1867 )
1868}
1869
1870function getDefaultTypeMessage(issue: Type): string {
1871 if (issue.message !== undefined) {

Callers 1

getDefaultTypeMessageFunction · 0.85

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected