ctimmerm / axios-mock-adapter

Axios adapter that allows to easily mock requests
MIT License
3.44k stars 244 forks source link

auto-import in vscode wants import MockAdapter from 'axios-mock-adapter/types'; #270

Closed xenoterracide closed 1 year ago

xenoterracide commented 4 years ago

auto-import in vscode wants import MockAdapter from 'axios-mock-adapter/types';

this is not correct/doesn't work instead it needs to be 'axios-mock-adapter';

obviously I'm hand correcting it, but I suspect this is a layout problem of the published artifact or a naming issue of the .d.ts file. It doesn't affect compiletime, only runtime. So it's a bit weird imho, and the only library I've seen this with.

marcbachmann commented 1 year ago

The type setup in this module changed a bit by now. I'll close this for now