You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was running without any issues before. However, after updating to version 1.2.3 of axios, I am now encountering a TypeScript error stating that:
Argumentoftype '{ showNotification: boolean;}' is not assignable to parameter of type 'RawAxiosRequestConfig<any>'
I did not intentionally update my packages and it seems that it has been installed automatically as a patch release.
I am wondering if this is a breaking change that occurred in the patch release? If so, what is the proper way to include my custom AxiosRequestConfig type declaration while still being compatible with the new version of axios?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have extended the axios module in my project by adding a custom property,
showNotification
, to theAxiosRequestConfig
interface as shown below:It was running without any issues before. However, after updating to version
1.2.3
ofaxios
, I am now encountering a TypeScript error stating that:I did not intentionally update my packages and it seems that it has been installed automatically as a patch release.
I am wondering if this is a breaking change that occurred in the patch release? If so, what is the proper way to include my custom
AxiosRequestConfig
type declaration while still being compatible with the new version ofaxios
?Beta Was this translation helpful? Give feedback.
All reactions