Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Content-Length: 243761 | pFad | http://github.com/axios/axios/discussions/6451
AFFetched URL: http://github.com/axios/axios/discussions/6451
Alternative Proxies:
-
I'm upgrading Axios from 0.22.0 to 1.7.2. But I get now the warning: 80:19 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
I have added the '!' to the line
!isReadOnly(error.config!)
I don't know what this exactly does except that I say now 'it will be never undefined', but what is the consequences if I do this?
And I'm asking myself and I don't believe it, that this is the right way to solve this. My application is working without 'issue'.
And off course I can add the rule ' @typescript-eslint/no-non-null-assertion', but I don't think it is a good idea.
Can someone explain what is the right way to solve such a issue?
Beta Was this translation helpful? Give feedback.
All reactions