MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / hasEventType

Method hasEventType

sdk/e2e/utils/event-collector.ts:50–52  ·  view source on GitHub ↗

Check if a specific event type was received

(type: PrintModeEvent['type'])

Source from the content-addressed store, hash-verified

48
49 /** Check if a specific event type was received */
50 hasEventType(type: PrintModeEvent['type']): boolean {
51 return this.events.some((e) => e.type === type)
52 }
53
54 /** Get the first event of a specific type */
55 getFirstEvent<T extends PrintModeEvent['type']>(

Calls

no outgoing calls

Tested by

no test coverage detected