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.