softonic / axios-retry

Axios plugin that intercepts failed requests and retries them whenever possible
Other
1.9k stars 167 forks source link

fix: has no call signatures #255

Closed yutak23 closed 1 year ago

yutak23 commented 1 year ago

The problem that occurred previously is occurring again. I think we should do exports for both esm and cjs.

The same support is available in repositories such as stripe-node.

Details will be as per the PR below.

https://github.com/softonic/axios-retry/pull/241

test

        "@tsconfig/node16": "^16.1.1",
        "@tsconfig/strictest": "^2.0.2",
        "typescript": "~5.2.2",
{
    "extends": ["@tsconfig/node16/tsconfig.json", "@tsconfig/strictest/tsconfig.json"],
    "compilerOptions": {
        "outDir": "dist",
        "declaration": true,
        "sourceMap": true
    },
    "include": ["srv/**/*.ts"],
    "exclude": ["node_modules", "dist"]
}