@octokit/webhooks
Version:
GitHub webhook events toolset for Node.js
7 lines (6 loc) • 348 B
TypeScript
import type { EmitterWebhookEventWithStringPayloadAndSignature, State } from "./types.js";
import type { EventHandler } from "./event-handler/index.js";
export declare function verifyAndReceive(state: State & {
secret: string;
eventHandler: EventHandler<unknown>;
}, event: EmitterWebhookEventWithStringPayloadAndSignature): Promise<void>;