Skip to content

Commit 5ccf9f3

Browse files
authored
Update interface for replicate.models.versions.list() (#349)
The endpoint returns a paginated list rather than an array
1 parent ac5caba commit 5ccf9f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ declare module "replicate" {
315315
model_owner: string,
316316
model_name: string,
317317
options?: { signal?: AbortSignal }
318-
): Promise<ModelVersion[]>;
318+
): Promise<Page<ModelVersion>>;
319319
get(
320320
model_owner: string,
321321
model_name: string,

0 commit comments

Comments
 (0)