Skip to content

Options is not optional for replicate.wait in TypeScript #154

@thelinuxkid

Description

@thelinuxkid

When running

  prediction = await replicate.wait(prediction);

using TypeScript I get an error if I don't pass empty options since options is not really marked as optional in the type definition.

The current work around to add an empty options

  prediction = await replicate.wait(prediction, {});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions