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

Function optionDecode

packages/effect/src/Schema.ts:7136–7137  ·  view source on GitHub ↗
(input: OptionEncoded<A>)

Source from the content-addressed store, hash-verified

7134 })
7135
7136const optionDecode = <A>(input: OptionEncoded<A>): option_.Option<A> =>
7137 input._tag === "None" ? option_.none() : option_.some(input.value)
7138
7139const optionArbitrary =
7140 <A>(value: LazyArbitrary<A>, ctx: ArbitraryGenerationContext): LazyArbitrary<option_.Option<A>> => (fc) =>

Callers 1

OptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected