Browse Source

无JIRA任务,更新下类型

release/11.0
Austin.Duan 2 years ago
parent
commit
3b6e365777
  1. 2
      package.json
  2. 3
      types/globals.d.ts

2
package.json

@ -20,7 +20,7 @@
"@types/jest": "24.0.11", "@types/jest": "24.0.11",
"@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0", "@typescript-eslint/parser": "^5.0.0",
"axios": "0.18.0", "axios": "^0.24.0",
"babel-loader": "8.0.6", "babel-loader": "8.0.6",
"body-parser": "1.18.3", "body-parser": "1.18.3",
"chokidar": "2.1.5", "chokidar": "2.1.5",

3
types/globals.d.ts vendored

@ -1,3 +1,4 @@
import type { Method, AxiosRequestConfig } from 'axios';
interface Obj { interface Obj {
[key: string]: any; [key: string]: any;
} }
@ -16,7 +17,7 @@ declare const Dec: {
personal: { personal: {
username: string; username: string;
}; };
reqByEncrypt: (method: string, url: string, data?: any, config?: Obj) => {}, reqByEncrypt: (method: Method, url: string, data?: any, config?: AxiosRequestConfig) => {},
socketEmit: (type: string, name: string, callback: (re: any) => void) => void; socketEmit: (type: string, name: string, callback: (re: any) => void) => void;
// req // req
reqGet: RequestFunction; reqGet: RequestFunction;

Loading…
Cancel
Save