Closed coolaj86 closed 2 years ago
Workaround:
//@ts-ignore
require('axios-retry').default = require('axios-retry');
var axios = require('axios-retry').default;
I believe with a1793ce8e44874d098c368f17a767db319880278 the issue should be fixed can you check please?
In order for Type Linting to work, both axios and axios-retry have to be required by their default export:
tsc
goes nuts thinking that it's the wrong type.tsc
is happy... butdefault
doesn't actually exist.This leads me to believe that index.d.ts is being generated in a way that's contrary to the export methods that
axios-retry
actually supports.