Update phonegap/phonegap.d.ts

Geolocation is now part of lib.d.ts and the duplicate declaration causes an error.
This commit is contained in:
Steve Fenton
2013-01-30 09:22:53 +00:00
parent f0ebef1bab
commit 4dca98aadd

View File

@@ -288,12 +288,6 @@ interface GeolocationOptions {
maximumAge?: number;
}
interface Geolocation {
getCurrentPosition(geolocationSuccess: (position: Position) => void , geolocationError?: PositionErrorCallback, geolocationOptions?: GeolocationOptions): void;
watchPosition(geolocationSuccess: (position: Position) => void , geolocationError?: PositionErrorCallback, geolocationOptions?: GeolocationOptions): void;
clearWatch(watchID: number): void;
}
interface GlobalizationError {
code: number;
message: string;
@@ -391,4 +385,4 @@ interface Navigator {
interface Window {
openDatabase(database_name: string, database_version: string, database_displayname: string, database_size: number): Database;
}
}