MCPcopy Create free account
hub / github.com/FallenMax/smart-toc / fromEvent

Method fromEvent

src/content/util/stream.ts:138–164  ·  view source on GitHub ↗
(
    elem: {
      addEventListener(
        type: string,
        listener: (payload: T | undefined) => void,
      ): void
      removeEventListener(
        type: string,
        listener: (payload: T | undefined) => void,
      ): void
    },
    type: string,
    callback?: (unsubscribe: () => void) => void,
  )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

activeHeadingStreamFunction · 0.80
contentStreamFunction · 0.80

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected