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

Function asSome

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

Source from the content-addressed store, hash-verified

1269 * @category mapping & sequencing
1270 */
1271export const asSome = <A, E, R>(self: Micro<A, E, R>): Micro<Option.Option<A>, E, R> => map(self, Option.some)
1272
1273/**
1274 * 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