Closed steve-baldwin closed 1 year ago
It also causes eslint to fail on @typescript-eslint/no-unsafe-member-access
and @typescript-eslint/no-unsafe-call
checks:
axiosMock.onPost().reply(200, '...');
eslint with plugin:@typescript-eslint/recommended-requiring-type-checking
:
44:2 error Unsafe member access .reply on an `any` value @typescript-eslint/no-unsafe-member-access
44:2 error Unsafe call of an `any` typed value @typescript-eslint/no-unsafe-call
I'm seeing this issue as well
It also causes eslint to fail on
@typescript-eslint/no-unsafe-member-access
and@typescript-eslint/no-unsafe-call
checks:
axiosMock.onPost().reply(200, '...');
eslint with
plugin:@typescript-eslint/recommended-requiring-type-checking
:44:2 error Unsafe member access .reply on an `any` value @typescript-eslint/no-unsafe-member-access 44:2 error Unsafe call of an `any` typed value @typescript-eslint/no-unsafe-call
This was fixed by https://github.com/ctimmerm/axios-mock-adapter/pull/368, but it's not yet released.
This was fixed by #368, but it's not yet released.
Hello Sir When this will release #368
Released as v1.21.4
Released as v1.21.4
Thank you sir
I'm seeing this issue as well
It also causes eslint to fail on
@typescript-eslint/no-unsafe-member-access
and@typescript-eslint/no-unsafe-call
checks:axiosMock.onPost().reply(200, '...');
eslint withplugin:@typescript-eslint/recommended-requiring-type-checking
:44:2 error Unsafe member access .reply on an `any` value @typescript-eslint/no-unsafe-member-access 44:2 error Unsafe call of an `any` typed value @typescript-eslint/no-unsafe-call
I'm getting these typing errors while using v1.21.4. Rolling back to version 1.21.2 works fine.
Any solution here?
Upgrading from 1.21.2 to 1.21.3 causes this:
In case it matters, this is with:
The following tsconfig.json: