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

Function events

packages/effect/src/ui/MessageLog.ts:1566–1571  ·  view source on GitHub ↗
(
    entry: {
      readonly component: Component.Mountable.Any
      readonly events: ReadonlyArray<unknown>
    }
  )

Source from the content-addressed store, hash-verified

1564 entry: { readonly component: Component.Mountable.Any; readonly props: unknown }
1565 ) => through(entry.component, "props", entry.props) as Schema.Json
1566 const events = (
1567 entry: {
1568 readonly component: Component.Mountable.Any
1569 readonly events: ReadonlyArray<unknown>
1570 }
1571 ) => entry.events.map((emitted) => through(entry.component, "events", emitted) as Schema.Json)
1572 const run = (entry: CommandEnded | CommandInterrupted) => ({
1573 ...instanceBase(entry),
1574 name: entry.name,

Callers 1

encodeFunction · 0.70

Calls 2

throughFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected