introduction to elasticsearch types

4
INTRODUCTION TO TYPES by Bo Andersen - codingexplained.com

Upload: bo-andersen

Post on 12-Apr-2017

35 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Introduction to Elasticsearch Types

INTRODUCTION TO TYPES

by Bo Andersen - codingexplained.com

Page 2: Introduction to Elasticsearch Types

WHAT ARE TYPES?➤ Declaring a variable as a particular type, instead of any type like in normal

JavaScript➤ A variable cannot contain values of other types

➤ Types are checked at compile time➤ Types included in TypeScript: boolean, number, string, array, enum, any,

void➤ Possible to create one's own types➤ Types are optional and are not part of the outputted JavaScript

var occupation: string = "Developer";

Page 3: Introduction to Elasticsearch Types

BENEFITS OF TYPES➤ Type errors are discovered at compile time➤ Increased IDE assistance➤ The language automatically ensures better code➤ Simplifies code & makes it easier to understand➤ Increased maintainability

Page 4: Introduction to Elasticsearch Types

THANK YOU FOR WATCHING!