Commit 05928e3
fix: patch axios temporarily / bump version (#427)
bumping axios without this patch leads to type checking errors as seen
here
https://github.com/mnahkies/openapi-code-generator/actions/runs/22118781975/job/63933672790
```
...
The types of 'config.transformRequest' are incompatible between these types.
Type 'import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/axios/index").AxiosRequestTransformer | import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/axios/index").AxiosRequestTransformer[]' is not assignable to type 'import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/axios/index", { with: { "resolution-mode": "import" } }).AxiosRequestTransformer | import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/...'.
Type 'AxiosRequestTransformer' is not assignable to type 'AxiosRequestTransformer | AxiosRequestTransformer[]'.
Type 'import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/axios/index").AxiosRequestTransformer' is not assignable to type 'import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/axios/index", { with: { "resolution-mode": "import" } }).AxiosRequestTransformer'.
The 'this' types of each signature are incompatible.
Type 'import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/axios/index", { with: { "resolution-mode": "import" } }).InternalAxiosRequestConfig<any>' is not assignable to type 'import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/axios/index").InternalAxiosRequestConfig<any>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Types of property 'transformRequest' are incompatible.
Type 'import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/axios/index", { with: { "resolution-mode": "import" } }).AxiosRequestTransformer | import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/...' is not assignable to type 'import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/axios/index").AxiosRequestTransformer | import("/home/runner/work/openapi-code-generator/openapi-code-generator/node_modules/.pnpm/axios@1.13.5/node_modules/axios/index").AxiosRequestTransformer[]'.
Type 'AxiosRequestTransformer' is not assignable to type 'AxiosRequestTransformer | AxiosRequestTransformer[]'.
```
The message is obtuse, but ultimately it's caused by
axios/axios#5560 creating an incompatibility
between the cjs and esm typings.
Upstream fix submitted: axios/axios#7414
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent ee3a619 commit 05928e3
6 files changed
Lines changed: 49 additions & 29 deletions
File tree
- e2e
- integration-tests/typescript-axios
- packages/typescript-axios-runtime
- patches
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 6 | | |
16 | 7 | | |
17 | | - | |
| 8 | + | |
18 | 9 | | |
19 | 10 | | |
20 | 11 | | |
| |||
26 | 17 | | |
27 | 18 | | |
28 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | | - | |
31 | | - | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| |||
0 commit comments