cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yasser Elsayed (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-10055) interface Geolocation (lib.d.ts) has the wrong type for watchId
Date Fri, 20 Nov 2015 22:34:10 GMT
Yasser Elsayed created CB-10055:
-----------------------------------

             Summary: interface Geolocation (lib.d.ts) has the wrong type for watchId
                 Key: CB-10055
                 URL: https://issues.apache.org/jira/browse/CB-10055
             Project: Apache Cordova
          Issue Type: Bug
            Reporter: Yasser Elsayed


This is the definition of Geolocation in lib.d.ts:
{code:xml}
interface Geolocation {
    clearWatch(watchId: number): void;
    getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback,
options?: PositionOptions): void;
    watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback,
options?: PositionOptions): number;
}
{code}
watchId variables in watchPosition() and clearWatch() are declared as numbers, but actually
the Cordova documentation on w3 states it's a string. See: http://dev.w3.org/geo/api/spec-source.html#geolocation



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message