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

Function eitherOrUndefined

packages/effect/src/ParseResult.ts:356–362  ·  view source on GitHub ↗
(
  self: Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

354 * @since 3.10.0
355 */
356export const eitherOrUndefined = <A, E, R>(
357 self: Effect.Effect<A, E, R>
358): Either.Either<A, E> | undefined => {
359 if (isEither(self)) {
360 return self
361 }
362}
363
364/**
365 * @category optimisation

Callers

nothing calls this directly

Calls 1

isEitherFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…