Skip to content

Commit

Permalink
fix(typescript): eventPayload parameter for Webhooks#verify can b…
Browse files Browse the repository at this point in the history
…e `string` (#388)
  • Loading branch information
G-Rath authored Dec 11, 2020
1 parent 1c405ab commit bc4a071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends WebhookEvent = WebhookEvent, U = {}> {
public sign: (payload: string | object) => string;
public verify: (eventPayload: object, signature: string) => boolean;
public verify: (eventPayload: string | object, signature: string) => boolean;
public on: <E extends WebhookEvents>(
event: E | E[],
callback: HandlerFunction<E, U>
Expand Down

0 comments on commit bc4a071

Please sign in to comment.