Skip to content

Commit 2d062a3

Browse files
authored
fix(@xen-orchestra/lite): fix JSONRPC request type (#8421)
1 parent 7fd4528 commit 2d062a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

@xen-orchestra/lite/src/libs/xen-api/xen-api.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ export default class XenApi {
7777
this.fromToken = undefined
7878
}
7979

80-
private request<T>(method: string, args: any[] = []): PromiseLike<T> {
81-
return this.client.request(method, args)
80+
private request<T>(method: string, args: unknown[] = []) {
81+
return this.client.request(method, args) as Promise<T>
8282
}
8383

84-
call = <T>(method: string, args: any[] = []): PromiseLike<T> => {
84+
call = <T>(method: string, args: unknown[] = []): Promise<T> => {
8585
return this.request(method, [this.sessionId, ...args])
8686
}
8787

0 commit comments

Comments
 (0)