node-fetch-retry icon indicating copy to clipboard operation
node-fetch-retry copied to clipboard

fix(types): Add type support for promises

Open Thomas0c opened this issue 3 years ago • 0 comments

Description

Fix types for retryOnHttpResponse and retryOnHttpError since they were missing async typings.

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [x] I have signed the Adobe Open Source CLA.
  • [x] My code follows the code style of this project.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [x] I have read the CONTRIBUTING document.
  • [ ] I have added tests to cover my changes.
  • [x] All new and existing tests passed.

Thomas0c avatar Jul 13 '22 20:07 Thomas0c