You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Yasser Elsayed (JIRA)" <ji...@apache.org> on 2015/11/20 23:34:10 UTC

[jira] [Created] (CB-10055) interface Geolocation (lib.d.ts) has the wrong type for watchId

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