From 389bf378d660ca595c98cd129b774a40947f01bb Mon Sep 17 00:00:00 2001 From: Sarah Shader Date: Mon, 31 Jul 2023 09:59:31 -0400 Subject: [PATCH] Fix TypeScript errors with --noImplicitAny --- 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: {