|
|
@ -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; |
|
|
|