|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import type { Method, AxiosRequestConfig } from 'axios'; |
|
|
|
|
interface Obj { |
|
|
|
|
[key: string]: any; |
|
|
|
|
} |
|
|
|
@ -16,7 +17,7 @@ declare const Dec: {
|
|
|
|
|
personal: { |
|
|
|
|
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; |
|
|
|
|
// req
|
|
|
|
|
reqGet: RequestFunction; |
|
|
|
|