Skip to content

WebhookEventHandlerFnForWorkers

Type Alias: WebhookEventHandlerFnForWorkers<Data, Env, Variables, ContextWithData>

Section titled “Type Alias: WebhookEventHandlerFnForWorkers<Data, Env, Variables, ContextWithData>”

WebhookEventHandlerFnForWorkers<Data, Env, Variables, ContextWithData> = (c) => Promise<any> | any

Defined in: types/webhook.ts:27

A version of WebhookEventHandlerFn that is designed for Cloudflare Workers, where it doesn’t matter what the return type is, since the response is handled by the worker’s execution context.

Data extends APIWebhookEventPayload

Env extends BlankEnv

Variables extends object

ContextWithData = Context<{ Bindings: Env; Variables: Variables; }>

ContextWithData

Promise<any> | any