Skip to content

Commit

Permalink
fix: use WebdriverIO.Browser instead of webdriverio browser
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovRoman committed Mar 11, 2024
1 parent 03d40dd commit 2ea3329
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { Browser } from "webdriverio";
import { Events } from "../events";
import { MainRunner } from "../runner";
import { TestCollection } from "../test-collection";
Expand Down Expand Up @@ -30,7 +29,10 @@ export interface BrowserInfo {
sessionId: string;
}

export type AsyncSessionEventCallback = (browser: Browser, browserInfo: BrowserInfo) => Promise<void> | void;
export type AsyncSessionEventCallback = (
browser: WebdriverIO.Browser,
browserInfo: BrowserInfo,
) => Promise<void> | void;

export interface ImageSize {
width: number;
Expand Down Expand Up @@ -148,7 +150,7 @@ export interface BeforeFileReadData extends AfterFileReadData {
}

export type SyncSessionEventCallback = (
browser: Browser,
browser: WebdriverIO.Browser,
browserInfo: { browserId: string; browserVersion: string },
) => void;

Expand Down

0 comments on commit 2ea3329

Please sign in to comment.