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 @@ -162,7 +162,7 @@ declare module "replicate" {
162
162
signal ?: AbortSignal ;
163
163
} ,
164
164
progress ?: ( prediction : Prediction ) => void
165
- ) : Promise < object > ;
165
+ ) : Promise < Prediction | any > ;
166
166
167
167
stream (
168
168
identifier : `${string } /${string } ` | `${string } /${string } :${string } `,
@@ -215,9 +215,9 @@ declare module "replicate" {
215
215
stream ?: boolean ;
216
216
webhook ?: string ;
217
217
webhook_events_filter ?: WebhookEventType [ ] ;
218
- block ?: boolean ;
218
+ wait ?: boolean | number | { mode ?: "poll" ; interval ?: number } ;
219
219
}
220
- ) : Promise < Prediction > ;
220
+ ) : Promise < Prediction | any > ;
221
221
} ;
222
222
get (
223
223
deployment_owner : string ,
@@ -304,9 +304,9 @@ declare module "replicate" {
304
304
stream ?: boolean ;
305
305
webhook ?: string ;
306
306
webhook_events_filter ?: WebhookEventType [ ] ;
307
- block ?: boolean ;
307
+ wait ?: boolean | number | { mode ?: "poll" ; interval ?: number } ;
308
308
} & ( { version : string } | { model : string } )
309
- ) : Promise < Prediction > ;
309
+ ) : Promise < Prediction | any > ;
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