Skip to content

Commit d5e3aee

Browse files
committed
chore: fix types
1 parent 879ab21 commit d5e3aee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/visual-service/src/types.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type {
99
SaveFullPageMethodOptions,
1010
ClassOptions,
1111
} from 'webdriver-image-comparison'
12+
import type { ChainablePromiseElement } from 'webdriverio'
1213

1314
type MultiOutput = {
1415
[browserName: string]: ScreenshotOutput;
@@ -31,12 +32,12 @@ export type MultiremoteCommandResult = {
3132
}
3233

3334
export interface WdioIcsCommonOptions {
34-
hideElements?: WebdriverIO.Element[];
35-
removeElements?: WebdriverIO.Element[];
35+
hideElements?: (WebdriverIO.Element | ChainablePromiseElement)[];
36+
removeElements?: (WebdriverIO.Element | ChainablePromiseElement)[];
3637
}
3738

3839
export interface WdioIcsScrollOptions extends WdioIcsCommonOptions {
39-
hideAfterFirstScroll?: WebdriverIO.Element[];
40+
hideAfterFirstScroll?: (WebdriverIO.Element | ChainablePromiseElement)[];
4041
}
4142

4243
export interface WdioCheckFullPageMethodOptions

0 commit comments

Comments
 (0)