From f1e661115c77d70d7f87f8d6fb65f7e3807de000 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Mon, 31 Jul 2023 07:00:01 -0700 Subject: [PATCH] Add missing label to callback type definitions --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 0b59dcb4..7a7ab378 100644 --- a/index.d.ts +++ b/index.d.ts @@ -90,7 +90,7 @@ declare module 'replicate' { webhook_events_filter?: WebhookEventType[]; signal?: AbortSignal; }, - progress?: (Prediction) => void + progress?: (prediction: Prediction) => void ): Promise; request(route: string | URL, options: { @@ -108,7 +108,7 @@ declare module 'replicate' { interval?: number; max_attempts?: number; }, - stop?: (Prediction) => Promise + stop?: (prediction: Prediction) => Promise ): Promise; collections: {