diff --git a/webdriverio/index.d.ts b/webdriverio/index.d.ts index 31543362e6..44a0e6ea57 100644 --- a/webdriverio/index.d.ts +++ b/webdriverio/index.d.ts @@ -313,11 +313,11 @@ declare namespace WebdriverIO { callback: (err: any, html: string | string[]) => P ): Client

; - getLocation(selector: string): Client; + getLocation(selector: string): Client; getLocation(selector: string, axis: string): Client; getLocation

( selector: string, - callback: (err: any, size: Size) => P + callback: (err: any, location: Location) => P ): Client

; getLocation

( selector: string, @@ -325,11 +325,11 @@ declare namespace WebdriverIO { callback: (err: any, location: number) => P ): Client

; - getLocationInView(selector: string): Client; + getLocationInView(selector: string): Client; getLocationInView(selector: string, axis: string): Client; getLocationInView

( selector: string, - callback: (err: any, size: Size | Size[]) => P + callback: (err: any, location: Location | Location[]) => P ): Client

; getLocationInView

( selector: string, @@ -395,7 +395,7 @@ declare namespace WebdriverIO { value: any; } - export interface Location { + export interface GeoLocation { latitude: number; longitude: number; altitude: number;