From 2c6023c8a4d3633e62a2a62d6f0d5f1b2fd5472c Mon Sep 17 00:00:00 2001 From: Pablo Moleri Date: Tue, 29 Nov 2016 16:21:36 -0300 Subject: [PATCH] Fix getLocation return type Also renamed GeoLocation type because it was being merged with Location type. --- webdriverio/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;