Commit Graph
6 Commits
Author SHA1 Message Date
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