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

Function rightEncoded

packages/effect/src/Schema.ts:7360–7364  ·  view source on GitHub ↗
(right: Right)

Source from the content-addressed store, hash-verified

7358export type EitherEncoded<IR, IL> = RightEncoded<IR> | LeftEncoded<IL>
7359
7360const rightEncoded = <Right extends Schema.All>(right: Right) =>
7361 Struct({
7362 _tag: Literal("Right"),
7363 right
7364 }).annotations({ description: `RightEncoded<${format(right)}>` })
7365
7366const leftEncoded = <Left extends Schema.All>(left: Left) =>
7367 Struct({

Callers 2

eitherEncodedFunction · 0.85
EitherFromUnionFunction · 0.85

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…