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

Function option

packages/effect/src/Config.ts:572–573  ·  view source on GitHub ↗
(self: Config<A>)

Source from the content-addressed store, hash-verified

570 * @since 2.0.0
571 */
572export const option = <A>(self: Config<A>): Config<Option.Option<A>> =>
573 self.pipe(map(Option.some), withDefault(Option.none()))
574
575/**
576 * Extracts the successfully parsed value type from a `Config`.

Callers

nothing calls this directly

Calls 3

mapFunction · 0.85
withDefaultFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected