mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Fix getLocation return type
Also renamed GeoLocation type because it was being merged with Location type.
This commit is contained in:
Vendored
+5
-5
@@ -313,11 +313,11 @@ declare namespace WebdriverIO {
|
||||
callback: (err: any, html: string | string[]) => P
|
||||
): Client<P>;
|
||||
|
||||
getLocation(selector: string): Client<Size>;
|
||||
getLocation(selector: string): Client<Location>;
|
||||
getLocation(selector: string, axis: string): Client<number>;
|
||||
getLocation<P>(
|
||||
selector: string,
|
||||
callback: (err: any, size: Size) => P
|
||||
callback: (err: any, location: Location) => P
|
||||
): Client<P>;
|
||||
getLocation<P>(
|
||||
selector: string,
|
||||
@@ -325,11 +325,11 @@ declare namespace WebdriverIO {
|
||||
callback: (err: any, location: number) => P
|
||||
): Client<P>;
|
||||
|
||||
getLocationInView(selector: string): Client<Size | Size[]>;
|
||||
getLocationInView(selector: string): Client<Location | Location[]>;
|
||||
getLocationInView(selector: string, axis: string): Client<number | number[]>;
|
||||
getLocationInView<P>(
|
||||
selector: string,
|
||||
callback: (err: any, size: Size | Size[]) => P
|
||||
callback: (err: any, location: Location | Location[]) => P
|
||||
): Client<P>;
|
||||
getLocationInView<P>(
|
||||
selector: string,
|
||||
@@ -395,7 +395,7 @@ declare namespace WebdriverIO {
|
||||
value: any;
|
||||
}
|
||||
|
||||
export interface Location {
|
||||
export interface GeoLocation {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
altitude: number;
|
||||
|
||||
Reference in New Issue
Block a user