Skip to content

Commit c0f0422

Browse files
authored
Annotate optional fields correctly (#50)
* Annotate optional model fields correctly * Annotate optional prediction fields correctly
1 parent 4517596 commit c0f0422

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ declare module 'replicate' {
1919
url: string;
2020
owner: string;
2121
name: string;
22-
description: string;
22+
description?: string;
2323
visibility: 'public' | 'private';
24-
github_url: string;
25-
paper_url: string;
26-
license_url: string;
24+
github_url?: string;
25+
paper_url?: string;
26+
license_url?: string;
2727
run_count: number;
28-
cover_image_url: string;
28+
cover_image_url?: string;
2929
default_example?: Prediction;
3030
latest_version?: ModelVersion;
3131
}
@@ -42,7 +42,7 @@ declare module 'replicate' {
4242
status: Status;
4343
version: string;
4444
input: object;
45-
output: any;
45+
output?: any;
4646
source: 'api' | 'web';
4747
error?: any;
4848
logs?: string;

0 commit comments

Comments
 (0)