DefinitelyTyped/types/google.geolocation/index.d.ts
Nathan Shively-Sanders 13839fe613
Type updates for TS 4.1 (#47679)
TS 4.1 changes the name of some DOM types. This PR updates those names.
2020-09-16 15:39:53 -07:00

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;