修正this指向错误的bug

This commit is contained in:
砚然
2018-08-24 16:03:38 +08:00
parent 98264facde
commit 51abd0532c
5 changed files with 29 additions and 18 deletions

11
typings/index.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
declare interface AnyProxyConfig {
port: number
}
declare interface AnyProxyRule {
summary?: string,
beforeSendRequest?: Function,
beforeSendResponse?: Function,
beforeDealHttpsRequest?: Function,
onError?: Function,
onConnectError?: Function
}