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

Function through

packages/effect/src/ui/MessageLog.ts:1450–1459  ·  view source on GitHub ↗
(
    component: Component.Mountable.Any,
    field: "props" | "model" | "message" | "events",
    value: unknown
  )

Source from the content-addressed store, hash-verified

1448 const warned = new Set<string>()
1449 const encoders = new WeakMap<Schema.Top, (value: unknown) => unknown>()
1450 const through = (
1451 component: Component.Mountable.Any,
1452 field: "props" | "model" | "message" | "events",
1453 value: unknown
1454 ) =>
1455 encodeWith(
1456 component[field] as Schema.Top,
1457 `${component.definition.name}.${field}`,
1458 value
1459 )
1460 const encodeWith = (schema: Schema.Top, id: string, value: unknown) => {
1461 if (holdsRedactedOverlap(schema.ast)) {
1462 let rejected = false

Callers 3

cappedFunction · 0.70
propsFunction · 0.70
eventsFunction · 0.70

Calls 1

encodeWithFunction · 0.85

Tested by

no test coverage detected