ChainGraph API Documentation / @badaitech/chaingraph-types / isNodeEventType
Function: isNodeEventType()
isNodeEventType<
T>(event,type):event is T
Defined in: packages/chaingraph-types/src/node/events.ts:199
Type guard to check if an event is a specific type
Type Parameters
T
T extends NodeEvent
Parameters
event
type
Returns
event is T