Installation
npm install --save @types/google-maps
Summary
This package contains type definitions for google-maps (https://www.npmjs.com/package/google-maps).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google-maps.
declare namespace GoogleMapsLoader {
type google = { maps: typeof google.maps };
interface CallBack {
(google: google): void;
}
export var KEY: string;
export var URL: string;
export var LIBRARIES: Array<string>;
export var CLIENT: string;
export var CHANNEL: string;
export var LANGUAGE: string;
export var REGION: string;
export var VERSION: string;
export var WINDOW_CALLBACK_NAME: string;
export function release(callBack: Function): void;
export function onLoad(callBack?: CallBack): void;
export function load(callBack?: CallBack): void;
export function isLoaded(): boolean;
export function createLoader(): void;
export function createUrl(): string;
export function makeMock(): void;
}
export = GoogleMapsLoader;
export as namespace GoogleMapsLoader;
Additional Details
Credits
These definitions were written by Deividas Bakanas, and Giedrius Grabauskas.