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" {
162162 signal ?: AbortSignal ;
163163 } ,
164164 progress ?: ( prediction : Prediction ) => void
165- ) : Promise < object > ;
165+ ) : Promise < Prediction | any > ;
166166
167167 stream (
168168 identifier : `${string } /${string } ` | `${string } /${string } :${string } `,
@@ -215,9 +215,9 @@ declare module "replicate" {
215215 stream ?: boolean ;
216216 webhook ?: string ;
217217 webhook_events_filter ?: WebhookEventType [ ] ;
218- block ?: boolean ;
218+ wait ?: boolean | number | { mode ?: "poll" ; interval ?: number } ;
219219 }
220- ) : Promise < Prediction > ;
220+ ) : Promise < Prediction | any > ;
221221 } ;
222222 get (
223223 deployment_owner : string ,
@@ -304,9 +304,9 @@ declare module "replicate" {
304304 stream ?: boolean ;
305305 webhook ?: string ;
306306 webhook_events_filter ?: WebhookEventType [ ] ;
307- block ?: boolean ;
307+ wait ?: boolean | number | { mode ?: "poll" ; interval ?: number } ;
308308 } & ( { version : string } | { model : string } )
309- ) : Promise < Prediction > ;
309+ ) : Promise < Prediction | any > ;
310310 get ( prediction_id : string ) : Promise < Prediction > ;
311311 cancel ( prediction_id : string ) : Promise < Prediction > ;
312312 list ( ) : Promise < Page < Prediction > > ;
You can’t perform that action at this time.
0 commit comments