mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: TS报错
This commit is contained in:
@@ -287,11 +287,11 @@ class HttpService {
|
||||
}
|
||||
|
||||
// Base request method
|
||||
public async request(config: FullRequestConfig): Promise<any> {
|
||||
public async request<T = any>(config: FullRequestConfig): Promise<T> {
|
||||
return this.instance.request({
|
||||
cancelToken: this.cancelTokenSource.token,
|
||||
...config,
|
||||
})
|
||||
}) as T
|
||||
}
|
||||
|
||||
// GET request
|
||||
|
||||
Reference in New Issue
Block a user