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

Function add

packages/effect/src/internal/matcher.ts:21–26  ·  view source on GitHub ↗
(
    this: TypeMatcher<any, any, any, any>,
    _case: Case
  )

Source from the content-addressed store, hash-verified

19 },
20 _tag: "TypeMatcher",
21 add<I, R, RA, A>(
22 this: TypeMatcher<any, any, any, any>,
23 _case: Case
24 ): TypeMatcher<I, R, RA, A> {
25 return makeTypeMatcher([...this.cases, _case])
26 },
27 pipe() {
28 return pipeArguments(this, arguments)
29 }

Callers

nothing calls this directly

Calls 5

makeTypeMatcherFunction · 0.85
makeValueMatcherFunction · 0.85
guardMethod · 0.65
evaluateMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected