mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
14 lines
601 B
TypeScript
14 lines
601 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
|
|
// Minimum TypeScript Version: 4.1
|
|
|
|
interface GeolocationStatic {
|
|
init(): boolean;
|
|
getCurrentPosition(success: (position: GeolocationPosition) => void, error?: (positionError: GeolocationPositionError) => void, opts?: PositionOptions): void;
|
|
showMap(latitude: number, longitude: number): void;
|
|
}
|
|
|
|
declare var geo_position_js: GeolocationStatic;
|