We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fd4528 commit 2d062a3Copy full SHA for 2d062a3
@xen-orchestra/lite/src/libs/xen-api/xen-api.ts
@@ -77,11 +77,11 @@ export default class XenApi {
77
this.fromToken = undefined
78
}
79
80
- private request<T>(method: string, args: any[] = []): PromiseLike<T> {
81
- return this.client.request(method, args)
+ private request<T>(method: string, args: unknown[] = []) {
+ return this.client.request(method, args) as Promise<T>
82
83
84
- call = <T>(method: string, args: any[] = []): PromiseLike<T> => {
+ call = <T>(method: string, args: unknown[] = []): Promise<T> => {
85
return this.request(method, [this.sessionId, ...args])
86
87
0 commit comments