GenericEventCallback<T>
@blobs/sdk / utils/types / GenericEventCallback
GenericEventCallback<
T> = (data) =>void|Promise<void>
Defined in: utils/types.ts:134
Generic event/subscription callback shape.
Renamed from EventCallback to avoid colliding with the EventManager
callback type elsewhere in the SDK.
Type Parameters
T
T
Type of data delivered to the callback.
Parameters
data
T
Returns
void | Promise<void>