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

Function optionSomeEncoded

packages/effect/src/Schema.ts:7122–7126  ·  view source on GitHub ↗
(value: Value)

Source from the content-addressed store, hash-verified

7120}).annotations({ description: "NoneEncoded" })
7121
7122const optionSomeEncoded = <Value extends Schema.Any>(value: Value) =>
7123 Struct({
7124 _tag: Literal("Some"),
7125 value
7126 }).annotations({ description: `SomeEncoded<${format(value)}>` })
7127
7128const optionEncoded = <Value extends Schema.Any>(value: Value) =>
7129 Union(

Callers 1

optionEncodedFunction · 0.85

Calls 4

StructFunction · 0.70
LiteralFunction · 0.70
formatFunction · 0.70
annotationsMethod · 0.65

Tested by

no test coverage detected