// public sendRequest(
// messageId: string,
// procedureName: ProcedureName,
- // requestPayload: RequestPayload
+ // requestPayload: RequestPayload,
// ): void {
// this.uiServer.sendRequest(
- // this.uiServer.buildProtocolRequest(messageId, procedureName, requestPayload)
+ // this.uiServer.buildProtocolRequest(messageId, procedureName, requestPayload),
// );
// }
id: string,
procedureName: ProcedureName,
resolve: (value: ResponsePayload | PromiseLike<ResponsePayload>) => void,
- reject: (reason?: any) => void
+ reject: (reason?: unknown) => void
): void {
this.responseHandlers.set(id, { procedureName, resolve, reject });
}
if (obj === null || obj === undefined) {
return false;
}
- return typeof (obj as any)[Symbol.iterator] === 'function';
+ return typeof (obj as unknown as Iterable<T>)[Symbol.iterator] === 'function';
}
// public static ifNotIterableDo<T>(obj: T, cb: () => void): void {
declare module '*.vue' {
import type { DefineComponent } from 'vue';
// eslint-disable-next-line @typescript-eslint/ban-types
- const component: DefineComponent<{}, {}, any>;
+ const component: DefineComponent<{}, {}, unknown>;
export default component;
}