Installation
npm install --save @types/google.geolocation
Summary
This package contains type definitions for google.geolocation (https://code.google.com/p/geo-location-javascript/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google.geolocation.
index.d.ts
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;
Additional Details
- Last updated: Tue, 30 Jan 2024 2145 GMT
- Dependencies: none
Credits
These definitions were written by Vincent Bortone.