We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 114ea59 commit 35fd3a0Copy full SHA for 35fd3a0
index.d.ts
@@ -1,2 +1,2 @@
1
-import { AxiosRequestConfig, AxiosPromise } from 'axios';
2
-export default function mpAdapter(config: AxiosRequestConfig): AxiosPromise;
+import { AxiosRequestConfig, AxiosPromise } from 'axios';
+export default function mpAdapter(config: AxiosRequestConfig, { transformRequestOption }?: { transformRequestOption?: ((requestOption: any) => any) | undefined }): AxiosPromise;
package.json
@@ -5,6 +5,7 @@
5
"main": "dist/index.js",
6
"jsnext:main": "dist/index.esm.js",
7
"module": "dist/index.esm.js",
8
+ "types": "index.d.ts",
9
"miniprogram": "dist/miniprogram",
10
"sideEffects": false,
11
"scripts": {
@@ -58,4 +59,4 @@
58
59
"dependencies": {
60
"axios": "^0.19.2"
61
}
-}
62
+}
0 commit comments