MCPcopy Create free account
hub / github.com/hashintel/hash / findFirstEvent

Function findFirstEvent

apps/petrinaut-website/scripts/brunch-sse-fixture.ts:433–437  ·  view source on GitHub ↗
(
  events: ActualModeReceivedEvent[],
  eventName: string,
)

Source from the content-addressed store, hash-verified

431};
432
433const findFirstEvent = (
434 events: ActualModeReceivedEvent[],
435 eventName: string,
436): ActualModeReceivedEvent | null =>
437 events.find((event) => event.event === eventName) ?? null;
438
439const parseRecordingReplay = (path: string): RecordingReplay => {
440 const events = parseRecordingEvents(parseJsonFile(path));

Callers 1

parseRecordingReplayFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected