birdofpreyru/js-utils

Update `withRetries()` typing

Closed this issue · 0 comments

We should use generic, to link the resolved result type to that of the action.

export default async function withRetries(
action: () => unknown,
maxRetries = 3,
interval = 300,
) {