From bc4a0716a24449ccd27de2adbdd89d0eff752ef2 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sat, 12 Dec 2020 12:34:27 +1300 Subject: [PATCH] fix(typescript): `eventPayload` parameter for `Webhooks#verify` can be `string` (#388) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ba01cc3d..a323d7c8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ import { WebhookEvents } from "./generated/get-webhook-payload-type-from-event"; // U holds the return value of `transform` function in Options class Webhooks { public sign: (payload: string | object) => string; - public verify: (eventPayload: object, signature: string) => boolean; + public verify: (eventPayload: string | object, signature: string) => boolean; public on: ( event: E | E[], callback: HandlerFunction