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

1.16.3 • Public • Published

Installation

npm install --save @types/places

Summary

This package contains type definitions for places (https://github.com/algolia/places).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/places.

index.d.ts

/// <reference types="node" />

import { EventEmitter } from "events";

declare namespace places {
    function version(): string;

    interface PlacesOptions {
        appId: string;
        apiKey: string;
        container: string | HTMLInputElement | NodeList | Element;
    }

    interface AutompleteOptions {
        autoselect: boolean;
        hint: boolean;
        cssClasses: {
            root: string;
            prefix: any;
        };
        debug: boolean;
    }

    interface Places {
        rawAnswer: any;
        query: any;
        suggestion: any;
        suggestionIndex: any;
    }

    interface Error {
        message: string;
    }
}

declare function places(
    options: places.PlacesOptions,
): EventEmitter;

export = places;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Ghizlane LOTFI.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/places

Weekly Downloads

31

Version

1.16.3

License

MIT

Unpacked Size

4.13 kB

Total Files

5

Last publish

Collaborators

  • types