-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
According to the old type definitions, this was correct usage: ```js // CJS const MockAdapter = require('axios-mock-adapter'); const mock = new MockAdapter.default(/* … */) ``` ```js // ESM const MockAdapter = require('axios-mock-adapter'); const mock = new MockAdapter.default(/* … */) ``` With the updated type definitions, this is: ```js // CJS const MockAdapter = require('axios-mock-adapter'); const mock = new MockAdapter(/* … */) ``` ```js // ESM const MockAdapter = require('axios-mock-adapter'); const mock = new MockAdapter(/* … */) ``` This has always been an issue, but it has become more apparent with the `"module": "node16"` option introduced in TypeScript 4.7.
- Loading branch information
1 parent
66e99a8
commit fd982cd
Showing
2 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters