Socket
Book a DemoInstallSign in
Socket

@types/load-google-maps-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/load-google-maps-api

TypeScript definitions for load-google-maps-api

2.0.5
ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version published
Weekly downloads
8.2K
17.52%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/load-google-maps-api

Summary

This package contains type definitions for load-google-maps-api (https://github.com/yuanqing/load-google-maps-api#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/load-google-maps-api.

index.d.ts

/// <reference types="google.maps" />

interface Options {
    /**
     * The Google Maps API `script` tag URL
     *
     * Default Value `'https://maps.googleapis.com/maps/api/js'`
     */
    apiUrl?: string | undefined;
    /**
     * Client usage reporting channel
     *
     * https://developers.google.com/maps/premium/reports/usage-reports#channels
     */
    channel?: string | undefined;
    /**
     * Client ID
     *
     * https://developers.google.com/maps/documentation/javascript/get-api-key#specifying-a-client-id-when-loading-the-api
     */
    client?: string | undefined;
    /**
     * Your API key
     *
     * https://developers.google.com/maps/documentation/javascript/get-api-key#step-2-add-the-api-key-to-your-application
     */
    key?: string | undefined;
    /**
     * https://developers.google.com/maps/documentation/javascript/localization#Language
     */
    language?: string | undefined;
    /**
     * Supplemental libraries to load
     *
     * Default Value `[]`
     *
     * https://developers.google.com/maps/documentation/javascript/libraries
     */
    libraries?: string[] | undefined;
    /**
     * https://developers.google.com/maps/documentation/javascript/localization#Region
     */
    region?: string | undefined;
    /**
     * Time in milliseconds before rejecting the Promise
     *
     * Default Value `10000`
     */
    timeout?: number | undefined;
    /**
     * API Version
     *
     * https://developers.google.com/maps/documentation/javascript/versions
     */
    v?: string | undefined;
}

declare function loadGoogleMapsApi(options?: Options): Promise<typeof google.maps>;

export = loadGoogleMapsApi;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/google.maps

Credits

These definitions were written by Oscar Busk.

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.