3.4.11 • Published 5 months ago
@types/react-google-places-suggest v3.4.11
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
// Type definitions for react-google-places-suggest 3.4
// Project: https://github.com/xuopled/react-google-places-suggest
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <reference types="google.maps" />
import { Component, 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: ReadonlyArray<Prediction>
) => JSX.Element | string) | undefined;
googleMaps: typeof google.maps;
onSelectSuggest?: ((
geocodedPrediction: GeocodedPrediction,
originalPrediction: Prediction
) => any) | undefined;
textNoResults?: string | null | undefined;
}
}
Additional Details
- Last updated: Thu, 23 Dec 2021 23:35:36 GMT
- Dependencies: @types/react, @types/google.maps
- Global values: none
Credits
These definitions were written by DefinitelyTyped.