Skip to content

WebhookSubscriptionCallback

1
type WebhookSubscriptionCallback<T>: (message: SubscriptionMessages<WebhookConnection>[T]) => any | Promise<any>;

The callback for a WebhookSubscription.

Type parameters

Type parameter
T extends SubscriptionTypes

Parameters

ParameterType
messageSubscriptionMessages<WebhookConnection>[T]

Returns

any | Promise<any>

Source

twitchfy/packages/eventsub/src/webhook/types/WebhookSubscriptionCallback.ts:10