Skip to content

Commit 0d79b77

Browse files
committed
Fixup types
1 parent 42c673b commit 0d79b77

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ declare module "replicate" {
9393
model: string;
9494
version: string;
9595
input: object;
96-
output?: any;
96+
output?: any; // TODO: this should be `unknown`
9797
source: "api" | "web";
98-
error?: any;
98+
error?: unknown;
9999
logs?: string;
100100
metrics?: {
101101
predict_time?: number;
@@ -162,7 +162,7 @@ declare module "replicate" {
162162
signal?: AbortSignal;
163163
},
164164
progress?: (prediction: Prediction) => void
165-
): Promise<Prediction | any>;
165+
): Promise<unknown>;
166166

167167
stream(
168168
identifier: `${string}/${string}` | `${string}/${string}:${string}`,
@@ -217,7 +217,7 @@ declare module "replicate" {
217217
webhook_events_filter?: WebhookEventType[];
218218
wait?: boolean | number | { mode?: "poll"; interval?: number };
219219
}
220-
): Promise<Prediction | any>;
220+
): Promise<Prediction>;
221221
};
222222
get(
223223
deployment_owner: string,
@@ -306,7 +306,7 @@ declare module "replicate" {
306306
webhook_events_filter?: WebhookEventType[];
307307
wait?: boolean | number | { mode?: "poll"; interval?: number };
308308
} & ({ version: string } | { model: string })
309-
): Promise<Prediction | any>;
309+
): Promise<Prediction>;
310310
get(prediction_id: string): Promise<Prediction>;
311311
cancel(prediction_id: string): Promise<Prediction>;
312312
list(): Promise<Page<Prediction>>;

0 commit comments

Comments
 (0)