Skip to content

Type Alias: WebhookHandler<M> ​

ts
type WebhookHandler<M> = (request, ctx) => 
  | WebhookEvent
  | typeof ignored
  | WebhookRejected
  | Promise<
  | WebhookEvent
  | typeof ignored
| WebhookRejected>;

Type Parameters ​

M ​

M extends AppManifestSpec

Parameters ​

request ​

WebhookRequest

ctx ​

AppContext<z.output<M["configSchema"]>>

Returns ​

| WebhookEvent | typeof ignored | WebhookRejected | Promise< | WebhookEvent | typeof ignored | WebhookRejected>

Released under the Apache-2.0 License.