mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
535 B
TypeScript
12 lines
535 B
TypeScript
// Type definitions for Google Geolocation 0.4.8
|
|
// Project: https://code.google.com/p/geo-location-javascript/
|
|
// Definitions by: Vincent Bortone <https://github.com/vbortone>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
interface GeolocationStatic {
|
|
init(): boolean;
|
|
getCurrentPosition(success: (position: Position) => void, error?: (positionError: PositionError) => void, opts?: PositionOptions): void;
|
|
showMap(latitude: number, longitude: number): void;
|
|
}
|
|
|
|
declare var geo_position_js: GeolocationStatic; |