diff --git a/types/index.d.ts b/types/index.d.ts index ac843417..bbdd3157 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,43 +1,53 @@ declare module WebdriverIO { - interface Browser { - /** - * Saves an image of an element - */ - saveElement(element: Element, tag: string, saveElementOptions?: {}); + interface Browser { + /** + * Saves an image of an element + */ + saveElement( + element: Element, + tag: string, + saveElementOptions?: {} + ): { fileName: string; path: string; devicePixelRatio: number }; - /** - * Saves an image of a viewport - */ - saveScreen(tag: string, saveScreenOptions?: {}); + /** + * Saves an image of a viewport + */ + saveScreen(tag: string, saveScreenOptions?: {}): { fileName: string; path: string; devicePixelRatio: number }; - /** - * Saves an image of the complete screen - */ - saveFullPageScreen(tag: string, saveFullPageScreenOptions?: {}); + /** + * Saves an image of the complete screen + */ + saveFullPageScreen( + tag: string, + saveFullPageScreenOptions?: {} + ): { fileName: string; path: string; devicePixelRatio: number }; - /** - * Saves an image of the complete screen with the tabbable lines and dots - */ - saveTabbablePage(tag: string, saveTabbableOptions?: {}); + /** + * Saves an image of the complete screen with the tabbable lines and dots + */ + saveTabbablePage( + tag: string, + saveTabbableOptions?: {} + ): { fileName: string; path: string; devicePixelRatio: number }; - /** - * Compare an image of an element - */ - checkElement(element: Element, tag: string, checkElementOptions?: {}); + /** + * Compare an image of an element + */ + checkElement(element: Element, tag: string, checkElementOptions?: {}): any; - /** - * Compares an image of a viewport - */ - checkScreen(tag: string, checkScreenOptions?: {}); + /** + * Compares an image of a viewport + */ + checkScreen(tag: string, checkScreenOptions?: {}): any; - /** - * Compares an image of the complete screen - */ - checkFullPageScreen(tag: string, checkFullPageOptions?: {}); + /** + * Compares an image of the complete screen + */ + checkFullPageScreen(tag: string, checkFullPageOptions?: {}): any; - /** - * Compares an image of the complete screen with the tabbable lines and dots - */ - checkTabbablePage(tag: string, checkTabbableOptions?: {}); - } + /** + * Compares an image of the complete screen with the tabbable lines and dots + */ + checkTabbablePage(tag: string, checkTabbableOptions?: {}): any; + } }