Is your feature request related to a problem? Please describe.
A compilation error happens when TS exactOptionalPropertyTypes flag is enabled and undefined is passed to a property in AxiosRequestConfig.
Describe the solution you'd like
Since the code seems to check that the cancelToken exists or not, would it be possible to add undefined as a value in the types?
|
function throwIfCancellationRequested(config) { |
|
if (config.cancelToken) { |
|
config.cancelToken.throwIfRequested(); |
|
} |
Describe alternatives you've considered
No response
Additional context/Screenshots

Is your feature request related to a problem? Please describe.
A compilation error happens when TS
exactOptionalPropertyTypesflag is enabled andundefinedis passed to a property inAxiosRequestConfig.Describe the solution you'd like
Since the code seems to check that the cancelToken exists or not, would it be possible to add
undefinedas a value in the types?axios/lib/core/dispatchRequest.js
Lines 17 to 20 in d9ebf8f
Describe alternatives you've considered
No response
Additional context/Screenshots