mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 20:02:05 +08:00
Fix PhoneGap definitions, to complie (at least)
This commit is contained in:
11
phonegap/phonegap.d.ts
vendored
11
phonegap/phonegap.d.ts
vendored
@@ -289,12 +289,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;
|
||||
@@ -385,7 +379,7 @@ interface LocalStorage {
|
||||
}
|
||||
*/
|
||||
|
||||
interface Navigator extends Navigator {
|
||||
interface PhoneGapNavigator extends Navigator {
|
||||
accelerometer: Accelerometer;
|
||||
camera: Camera;
|
||||
capture: Capture;
|
||||
@@ -403,4 +397,5 @@ interface Window {
|
||||
openDatabase(database_name: string, database_version: string, database_displayname: string, database_size: number): Database;
|
||||
}
|
||||
|
||||
declare var device: Device;
|
||||
declare var device: Device;
|
||||
declare var phoneGapNavigator: PhoneGapNavigator;
|
||||
Reference in New Issue
Block a user