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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to