Installation
npm install --save @types/react-google-maps-loader
Summary
This package contains type definitions for react-google-maps-loader (https://github.com/xuopled/react-google-maps-loader).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-google-maps-loader.
import { Component, ReactNode } from "react";
export = ReactGoogleMapsLoader;
declare class ReactGoogleMapsLoader extends Component<ReactGoogleMapsLoader.Props> {}
declare namespace ReactGoogleMapsLoader {
type GoogleMaps = typeof google.maps;
interface Params {
key: string;
libraries?: string | undefined;
}
interface Props {
params: Params;
render: (googleMaps: GoogleMaps, error?: string | null | undefined) => ReactNode;
}
}
Additional Details
Credits
These definitions were written by .