Skip to content

PersistentAI API Documentation / @persistentai/fireflow-types / FlowEventHandler

Type Alias: FlowEventHandler()<T>

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

Defined in: packages/fireflow-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