Skip to content

Commit 21f21b0

Browse files
authored
fix(typescript): default TTransformed in Webhooks type parameter to unknown (#514)
1 parent 150a190 commit 21f21b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import { verify } from "./verify/index";
1818

1919
// U holds the return value of `transform` function in Options
20-
class Webhooks<TTransformed> {
20+
class Webhooks<TTransformed = unknown> {
2121
public sign: (payload: string | object) => string;
2222
public verify: (eventPayload: string | object, signature: string) => boolean;
2323
public on: <E extends EmitterWebhookEventName>(

0 commit comments

Comments
 (0)