0.1.5 • Published 4 years ago

elastic-types v0.1.5

Weekly downloads
66
License
MIT
Repository
github
Last release
4 years ago

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']
    }
};
0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago