3.4.11 • Published 5 months ago

@types/react-google-places-suggest v3.4.11

Weekly downloads
551
License
MIT
Repository
github
Last release
5 months ago

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

Credits

These definitions were written by DefinitelyTyped.

3.4.11

5 months ago

3.4.10

6 months ago

3.4.8

7 months ago

3.4.7

8 months ago

3.4.9

6 months ago

3.4.6

2 years ago

3.4.5

3 years ago

3.4.4

3 years ago

3.4.3

4 years ago

3.4.2

5 years ago

3.4.1

6 years ago

3.4.0

6 years ago