@@ -93,9 +93,9 @@ declare module "replicate" {
9393 model : string ;
9494 version : string ;
9595 input : object ;
96- output ?: any ;
96+ output ?: any ; // TODO: this should be `unknown`
9797 source : "api" | "web" ;
98- error ?: any ;
98+ error ?: unknown ;
9999 logs ?: string ;
100100 metrics ?: {
101101 predict_time ?: number ;
@@ -156,13 +156,13 @@ declare module "replicate" {
156156 identifier : `${string } /${string } ` | `${string } /${string } :${string } `,
157157 options : {
158158 input : object ;
159- wait ?: boolean | number | { mode ?: "poll" ; interval ?: number } ;
159+ wait ?: boolean | number | { interval ?: number } ;
160160 webhook ?: string ;
161161 webhook_events_filter ?: WebhookEventType [ ] ;
162162 signal ?: AbortSignal ;
163163 } ,
164164 progress ?: ( prediction : Prediction ) => void
165- ) : Promise < Prediction | any > ;
165+ ) : Promise < unknown > ;
166166
167167 stream (
168168 identifier : `${string } /${string } ` | `${string } /${string } :${string } `,
@@ -217,7 +217,7 @@ declare module "replicate" {
217217 webhook_events_filter ?: WebhookEventType [ ] ;
218218 wait ?: boolean | number | { mode ?: "poll" ; interval ?: number } ;
219219 }
220- ) : Promise < Prediction | any > ;
220+ ) : Promise < Prediction > ;
221221 } ;
222222 get (
223223 deployment_owner : string ,
@@ -306,7 +306,7 @@ declare module "replicate" {
306306 webhook_events_filter ?: WebhookEventType [ ] ;
307307 wait ?: boolean | number | { mode ?: "poll" ; interval ?: number } ;
308308 } & ( { version : string } | { model : string } )
309- ) : Promise < Prediction | any > ;
309+ ) : Promise < Prediction > ;
310310 get ( prediction_id : string ) : Promise < Prediction > ;
311311 cancel ( prediction_id : string ) : Promise < Prediction > ;
312312 list ( ) : Promise < Page < Prediction > > ;
0 commit comments