DefinitelyTyped/types/async-retry
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
..
async-retry-tests.ts Fix parameterized type inference for async-retry 2018-05-31 20:40:05 -07:00
index.d.ts Fix parameterized type inference for async-retry 2018-05-31 20:40:05 -07:00
tsconfig.json
tslint.json