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

Function option

packages/effect/src/internal/config.ts:436–442  ·  view source on GitHub ↗
(self: Config.Config<A>)

Source from the content-addressed store, hash-verified

434
435/** @internal */
436export const option = <A>(self: Config.Config<A>): Config.Config<Option.Option<A>> => {
437 return pipe(
438 self,
439 map(Option.some),
440 orElseIf({ orElse: () => succeed(Option.none()), if: ConfigError.isMissingDataOnly })
441 )
442}
443
444/** @internal */
445export const primitive = <A>(

Callers

nothing calls this directly

Calls 3

pipeFunction · 0.70
succeedFunction · 0.70
mapFunction · 0.50

Tested by

no test coverage detected