Callback function type for checkpoint handlers
Checkpoint callbacks receive event data and return success status. Callbacks are executed sequentially for each checkpoint trigger.
Event data passed to the callback
Promise resolving to success object
const callback: CheckpointCallback = async (data) => { console.log('Processing event:', data); await performAction(data); return { success: true };}; Copy
const callback: CheckpointCallback = async (data) => { console.log('Processing event:', data); await performAction(data); return { success: true };};
Callback function type for checkpoint handlers
Checkpoint callbacks receive event data and return success status. Callbacks are executed sequentially for each checkpoint trigger.