MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeValueMatcher

Function makeValueMatcher

packages/effect/src/internal/matcher.ts:92–100  ·  view source on GitHub ↗
(
  provided: Pr,
  value: Either.Either<Pr, RA>
)

Source from the content-addressed store, hash-verified

90}
91
92function makeValueMatcher<I, R, RA, A, Pr>(
93 provided: Pr,
94 value: Either.Either<Pr, RA>
95): ValueMatcher<I, R, RA, A, Pr> {
96 const matcher = Object.create(ValueMatcherProto)
97 matcher.provided = provided
98 matcher.value = value
99 return matcher
100}
101
102const makeWhen = (
103 guard: (u: unknown) => boolean,

Callers 2

addFunction · 0.85
valueFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected