diff --git a/index.d.ts b/index.d.ts index bc5be67..311647b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -56,6 +56,8 @@ declare module 'replicate' { completed_at?: string; } + export type Training = Prediction; + export default class Replicate { constructor(options: { auth: string; @@ -126,8 +128,8 @@ declare module 'replicate' { webhook_events_filter?: WebhookEventType[]; } ): Promise; - get(options: TrainingsGetOptions): Promise; - cancel(options: TrainingsGetOptions): Promise; + get(training_id: string): Promise; + cancel(training_id: string): Promise; }; } }