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

Function asSome

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

Source from the content-addressed store, hash-verified

1270 * @category mapping & sequencing
1271 */
1272export const asSome = <A, E, R>(self: Micro<A, E, R>): Micro<Option.Option<A>, E, R> => map(self, Option.some)
1273
1274/**
1275 * Swap the error and success types of the `Micro` effect.

Callers 1

Micro.tsFile · 0.70

Calls 1

mapFunction · 0.70

Tested by

no test coverage detected