Installation
npm install --save @types/react-google-places-suggest
Summary
This package contains type definitions for react-google-places-suggest (https://github.com/xuopled/react-google-places-suggest).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-google-places-suggest.
index.d.ts
/// <reference types="google.maps" />
import { Component, JSX, ReactNode } from "react";
export default ReactGooglePlacesSuggest;
declare class ReactGooglePlacesSuggest extends Component<
ReactGooglePlacesSuggest.Props
> {}
declare namespace ReactGooglePlacesSuggest {
type Prediction = google.maps.places.AutocompletePrediction;
type GeocodedPrediction = google.maps.GeocoderResult;
interface Props {
autocompletionRequest: google.maps.places.AutocompletionRequest;
children?: ReactNode | undefined;
customRender?: ((prediction?: Prediction) => JSX.Element | string) | undefined;
customContainerRender?:
| ((
predictions: readonly Prediction[],
) => JSX.Element | string)
| undefined;
googleMaps: typeof google.maps;
onSelectSuggest?:
| ((
geocodedPrediction: GeocodedPrediction,
originalPrediction: Prediction,
) => any)
| undefined;
textNoResults?: string | null | undefined;
}
}
Additional Details
- Last updated: Tue, 05 Dec 2023 20:35:50 GMT
- Dependencies: @types/google.maps, @types/react
Credits
These definitions were written by .