Skip to content

GenericEventCallback<T>

@blobs/sdk v0.1.0


@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>