File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -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 ;
@@ -162,7 +162,7 @@ declare module "replicate" {
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 > > ;
You can’t perform that action at this time.
0 commit comments