Replying to @coderbyheart

The point is to not define the return type when creating an instance of the
wrapper, which would solve it for each use case:

const retry5string = retry<string>(5) const retry5number =
retry<number>(5)

Thu, 02 Apr 2020 10:25:37 UTC