elastic-types
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Build Status Release Version License

ElasticSearch Types

TypeScript Typings for all Queries, Aggregations, Requests and Responses to easily work with it, without the guess work!

Installation

Simply install it as a dev-dependency with your preferred package-manager:

npm i -D elastic-types
yarn add -D elastic-types

Then import the Types you need and easily stick your queries together!

import { TermQuery } from 'elastic-types/queries';

const validQuery: TermQuery = {
    term: {
        value: 'some cool text',
    }
};

const invalidQuery: TermQuery = {
    term: {
        value: ['arrays', 'are', 'invalid']
    }
};

Package Sidebar

Install

npm i elastic-types

Weekly Downloads

4

Version

0.1.5

License

MIT

Unpacked Size

102 kB

Total Files

71

Last publish

Collaborators

  • deckdom