Commit 44a683a
fix(typescript-axios): add explicit return type to avoid TS2527 error
axios 1.7.5+ exports a unique symbol that TypeScript cannot infer
through the generated createRequestFunction. Adding an explicit
': Promise<R>' return type on the inner arrow function and casting the
result prevents TS from exposing the inaccessible symbol.
Upstream fix: OpenAPITools/openapi-generator#24526 (not yet in v7.16.0).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d04e052 commit 44a683a
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | | - | |
| 103 | + | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
0 commit comments