npm.io
0.4.35 • Published 2 years ago

@types/google.geolocation

Licence
MIT
Version
0.4.35
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.