@types/react-google-places-suggest
TypeScript icon, indicating that this package has built-in type declarations

3.4.11 • Public • Published

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

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-google-places-suggest

Weekly Downloads

729

Version

3.4.11

License

MIT

Unpacked Size

4.85 kB

Total Files

5

Last publish

Collaborators

  • types