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, {});