Skip to content

Commit

Permalink
fix: type definition for transformRequestOption
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiangmoe committed Mar 24, 2023
1 parent 114ea59 commit b0d7bf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import { AxiosRequestConfig, AxiosPromise } from 'axios';
export default function mpAdapter(config: AxiosRequestConfig): AxiosPromise;
import type { AxiosRequestConfig, AxiosPromise } from 'axios';
export default function mpAdapter(config: AxiosRequestConfig, { transformRequestOption }?: { transformRequestOption?: ((requestOption: any) => any) | undefined }): AxiosPromise;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/index.js",
"jsnext:main": "dist/index.esm.js",
"module": "dist/index.esm.js",
"types": "index.d.ts",
"miniprogram": "dist/miniprogram",
"sideEffects": false,
"scripts": {
Expand Down Expand Up @@ -58,4 +59,4 @@
"dependencies": {
"axios": "^0.19.2"
}
}
}

0 comments on commit b0d7bf2

Please sign in to comment.