Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-types / FlowEventHandler

Type Alias: FlowEventHandler()<T>

FlowEventHandler<T> = (data) => void | Promise<void>

Defined in: packages/chaingraph-types/src/flow/eventHandlers.ts:14

Type representing a handler function for a specific flow event type

Type Parameters

T

T extends FlowEventType

Parameters

data

EventDataMap[T]

Returns

void | Promise<void>

Licensed under BUSL-1.1