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

Function option

packages/effect/src/Micro.ts:2922–2923  ·  view source on GitHub ↗
(self: Micro<A, E, R>)

Source from the content-addressed store, hash-verified

2920 * @category error handling
2921 */
2922export const option = <A, E, R>(self: Micro<A, E, R>): Micro<Option.Option<A>, never, R> =>
2923 match(self, { onFailure: Option.none, onSuccess: Option.some })
2924
2925/**
2926 * Replace the success value of the given `Micro` effect with an `Either`,

Callers

nothing calls this directly

Calls 1

matchFunction · 0.70

Tested by

no test coverage detected