Elasticsearch and Angular 2 Elasticsearch and Angular 2 elasticsearch elasticsearch

Elasticsearch and Angular 2


The simplest way to get this working, is to first install the type definitions:

npm install --save-dev @types/elasticsearch

And then, armed with your new shiny types, you can use import statements like this one:

import { Client } from 'elasticsearch';

... and use it like this:

let x = new Client({ /* Your parameters here */});