diff --git a/src/app/utils/appUtils.ts b/src/app/utils/appUtils.ts index 372fda7a..cfd9b4f1 100644 --- a/src/app/utils/appUtils.ts +++ b/src/app/utils/appUtils.ts @@ -2,6 +2,7 @@ import { HttpEndpoint, request } from "../../services/backend"; import connector, { sendMessage } from "../../pageServices/connector"; import { SCRIPT_ERROR } from "../../common/constants/constants"; import { locatorGenerationController } from "../../features/locators/utils/locatorGenerationController"; +import { MainState } from "../types/mainSlice.types"; export const checkSession = async (setStateCallback: (val: boolean) => void) => { setStateCallback(false); @@ -14,7 +15,7 @@ export const checkSession = async (setStateCallback: (val: boolean) => void) => }); }; -export const initLocatorSocketController = async (xpathConfig: any) => { +export const initLocatorSocketController = async (xpathConfig: MainState["xpathConfig"]) => { const sessionId = await request.get(HttpEndpoint.SESSION_ID); locatorGenerationController.init(sessionId, xpathConfig); };