Commit Graph

12 Commits

Author SHA1 Message Date
Daniel Lytkin
d93ff72436 [async-retry] Options are optional 2019-04-11 21:59:17 +07:00
Rafal Sawicki
415333a0e3 Bump typescript version to the same version as in types for "retry" 2019-04-04 17:52:34 +02:00
Rafal Sawicki
8908cbdb45 Change async-retry options to use retry library types
Since async-retry is passing options parameter directly to the underlying retry library, option types can be reused from it.
2019-04-04 11:49:56 +02:00
Bert Verhelst
752f796dbf
Increase minor version instead of patch version 2019-03-31 20:09:34 +02:00
Bert Verhelst
54bc43d1d8
Update version number 2019-03-25 16:16:29 +01:00
Bert Verhelst
ca0bad23e6
Attempts are passed to onRetry function
https://github.com/zeit/async-retry/blob/master/lib/index.js#L33
2019-03-25 16:15:17 +01:00
James Ide
c122cd24a6 Fix parameterized type inference for async-retry
The async-retry function has a generic type parameter `A` and TypeScript is unable to infer the concret type when the `bail` function, whose type references the generic type, is specified. Reading the source and API documentation of async-retry, `bail` returns nothing so `void` is the right type here. This in turn fixes inference of the generic type parameter `A`.

Tested by adding some expected return types to the test file. The type checks failed before this commit. With this commit, they pass.
2018-05-31 20:40:05 -07:00
Pablo Rodríguez
93d5d645d3
Remove retry from the AsyncRetry namespace 2018-03-31 13:37:43 +02:00
Pablo Rodríguez
e43d96d643
Fix async-retry's exports
The exports of the package async-retry were misrepresenting the
original package's.
2018-03-25 21:20:47 +02:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
albertywu
4fd902f173 adds typings for async-retry npm package (#23175) 2018-01-25 07:56:44 -08:00