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

Function onPositivePredicateError

packages/effect/test/Result.test.ts:294–294  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

292 it("liftPredicate", () => {
293 const isPositivePredicate = (n: number) => n > 0
294 const onPositivePredicateError = (n: number) => `${n} is not positive`
295 const isNumberRefinement = (n: string | number): n is number => typeof n === "number"
296 const onNumberRefinementError = (n: string | number) => `${n} is not a number`
297

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected