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

Function option

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

Source from the content-addressed store, hash-verified

443
444/** @internal */
445export const option = <A>(self: Config.Config<A>): Config.Config<Option.Option<A>> => {
446 return pipe(
447 self,
448 map(Option.some),
449 orElseIf({ orElse: () => succeed(Option.none()), if: ConfigError.isMissingDataOnly })
450 )
451}
452
453/** @internal */
454export 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