Skip to content

Commit fc62230

Browse files
committed
Fix types for validateWebhook
1 parent 3efcc3e commit fc62230

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ declare module "replicate" {
279279
signature?: string;
280280
},
281281
secret: string
282-
): boolean;
282+
): Promise<boolean>;
283283

284284
export function parseProgressFromLogs(logs: Prediction | string): {
285285
percentage: number;

index.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ describe("Replicate client", () => {
11791179
// This is a test secret and should not be used in production
11801180
const secret = "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw";
11811181

1182-
const isValid = validateWebhook(request, secret);
1182+
const isValid = await validateWebhook(request, secret);
11831183
expect(isValid).toBe(true);
11841184
});
11851185

0 commit comments

Comments
 (0)