@@ -93,9 +93,9 @@ declare module "replicate" {
93
93
model : string ;
94
94
version : string ;
95
95
input : object ;
96
- output ?: any ;
96
+ output ?: any ; // TODO: this should be `unknown`
97
97
source : "api" | "web" ;
98
- error ?: any ;
98
+ error ?: unknown ;
99
99
logs ?: string ;
100
100
metrics ?: {
101
101
predict_time ?: number ;
@@ -156,13 +156,13 @@ declare module "replicate" {
156
156
identifier : `${string } /${string } ` | `${string } /${string } :${string } `,
157
157
options : {
158
158
input : object ;
159
- wait ?: boolean | number | { mode ? : "poll" ; interval ?: number } ;
159
+ wait ?: boolean | number | { mode : "poll" ; interval ?: number } ;
160
160
webhook ?: string ;
161
161
webhook_events_filter ?: WebhookEventType [ ] ;
162
162
signal ?: AbortSignal ;
163
163
} ,
164
164
progress ?: ( prediction : Prediction ) => void
165
- ) : Promise < Prediction | any > ;
165
+ ) : Promise < unknown > ;
166
166
167
167
stream (
168
168
identifier : `${string } /${string } ` | `${string } /${string } :${string } `,
@@ -217,7 +217,7 @@ declare module "replicate" {
217
217
webhook_events_filter ?: WebhookEventType [ ] ;
218
218
wait ?: boolean | number | { mode ?: "poll" ; interval ?: number } ;
219
219
}
220
- ) : Promise < Prediction | any > ;
220
+ ) : Promise < Prediction > ;
221
221
} ;
222
222
get (
223
223
deployment_owner : string ,
@@ -306,7 +306,7 @@ declare module "replicate" {
306
306
webhook_events_filter ?: WebhookEventType [ ] ;
307
307
wait ?: boolean | number | { mode ?: "poll" ; interval ?: number } ;
308
308
} & ( { version : string } | { model : string } )
309
- ) : Promise < Prediction | any > ;
309
+ ) : Promise < Prediction > ;
310
310
get ( prediction_id : string ) : Promise < Prediction > ;
311
311
cancel ( prediction_id : string ) : Promise < Prediction > ;
312
312
list ( ) : Promise < Page < Prediction > > ;
0 commit comments