Beignet API reference
    Preparing search index...

    Type Alias WebhookRouteHandlerArgs<Ctx, Webhook, AllowUnknownEvents>

    type WebhookRouteHandlerArgs<
        Ctx extends WebhookRouteContext,
        Webhook extends WebhookDef<string, WebhookEventSchemas>,
        AllowUnknownEvents extends boolean,
    > = {
        ctx: Ctx;
        event: AllowUnknownEvents extends false
            ? InferWebhookEvent<Webhook>
            : InferWebhookEvent<Webhook> | WebhookEvent;
        rawBody: string;
        req: Request;
    }

    Type Parameters

    Index
    ctx: Ctx
    rawBody: string
    req: Request