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.
Type Parameters
Section titled “Type Parameters”Data extends APIWebhookEventPayload
Env extends BlankEnv
Variables
Section titled “Variables”Variables extends object
ContextWithData
Section titled “ContextWithData”ContextWithData = Context<{ Bindings: Env; Variables: Variables; }>
Parameters
Section titled “Parameters”ContextWithData
Returns
Section titled “Returns”Promise<any> | any
