Reattempt.run() includes a second argument that can accept either an 'AsyncAttemptFunction' or a 'CallbackAttemptFunction'. If I try to use the latter, I get a linting error, despite the program compiling just fine. Coc-Tsserver seems not to respect the fact that the function accepts two different arguments.
Currently trying to use this library: https://github.com/wsmd/reattempt
Reattempt.run() includes a second argument that can accept either an 'AsyncAttemptFunction' or a 'CallbackAttemptFunction'. If I try to use the latter, I get a linting error, despite the program compiling just fine. Coc-Tsserver seems not to respect the fact that the function accepts two different arguments.
Some sample code is here:
The library is small and contains really only one line of code: https://github.com/wsmd/reattempt/blob/master/lib/index.ts