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

Function makeNot

packages/effect/src/internal/matcher.ts:111–118  ·  view source on GitHub ↗
(
  guard: (u: unknown) => boolean,
  evaluate: (input: unknown) => any
)

Source from the content-addressed store, hash-verified

109})
110
111const makeNot = (
112 guard: (u: unknown) => boolean,
113 evaluate: (input: unknown) => any
114): Not => ({
115 _tag: "Not",
116 guard,
117 evaluate
118})
119
120const makePredicate = (pattern: unknown): Predicate.Predicate<unknown> => {
121 if (typeof pattern === "function") {

Callers 1

notFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected