From fcd6c5098e739ec99426041198240bc13d7b8c6e Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Mon, 11 Mar 2024 11:35:29 +0300 Subject: [PATCH] fix: use WebdriverIO.Browser instead of webdriverio browser --- src/types/index.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/types/index.ts b/src/types/index.ts index 7bf9bdf02..cb93dbdfd 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,4 +1,3 @@ -import type { Browser } from "webdriverio"; import { Events } from "../events"; import { MainRunner } from "../runner"; import { TestCollection } from "../test-collection"; @@ -32,7 +31,10 @@ export interface BrowserInfo { sessionId: string; } -export type AsyncSessionEventCallback = (browser: Browser, browserInfo: BrowserInfo) => Promise | void; +export type AsyncSessionEventCallback = ( + browser: WebdriverIO.Browser, + browserInfo: BrowserInfo, +) => Promise | void; export interface ImageSize { width: number; @@ -150,7 +152,7 @@ export interface BeforeFileReadData extends AfterFileReadData { } export type SyncSessionEventCallback = ( - browser: Browser, + browser: WebdriverIO.Browser, browserInfo: { browserId: string; browserVersion: string }, ) => void;