Replies: 2 comments 3 replies
-
Try using bracket notation, like the following
Since the types suggest |
Beta Was this translation helpful? Give feedback.
-
@aniravi24, your code above results in the following TS error in Axios v1.2.2.
I'm trying to upgrade from Axios v1.1.3 to v1.2.2 and it seems that there was some sort of breaking change in |
Beta Was this translation helpful? Give feedback.
-
Hi All,
Currently looking at writing some code like this:
But I can't get it to work without the
// @ts-ignore
which i'd obviously want to avoid if possible.Does anyone have any other better ways of doing this or is this the best work around currently ?
Beta Was this translation helpful? Give feedback.
All reactions