1 / 6

Introduction to TypeScript

Introduction to TypeScript. Sergey Barskiy Architect. Level : Introductory. What is TypeScript?. Superset of JavaScript Compiles to JavaScript Higher (than JS ) level language with concepts such as Interfaces Classes Generics Modules. What does TypeScript do?.

kairos
Download Presentation

Introduction to TypeScript

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to TypeScript Sergey Barskiy Architect Level: Introductory

  2. What is TypeScript? • Superset of JavaScript • Compiles to JavaScript • Higher (than JS) level language with concepts such as • Interfaces • Classes • Generics • Modules

  3. What does TypeScript do? • Design / compile time language. JavaScript is used at run time • At compile time TS preforms tests to ensure the code complies with declared intents • Robust IntelliSense support • Developers (at least I do) make fewer errors than in JavaScript

  4. What about external libraries? • TypeScript has concept of definition files. Those contain just interfaces. • You can add a definition file to an existing JS library, including yours. • There is a project on GitHub that contains definition files for many, many common JS libraries • https://github.com/borisyankov/DefinitelyTyped • Most are available as Nuget packages

  5. Demo • Modules • Types System • Interfaces • Classes with inheritance • Export (Public) • Import (aka using in C#) • Functions (with and without parameters and return values) • Constructors • Constructors with public or private properties • Generics

  6. More Information • http://www.typescriptlang.org/ • Sergey@Barskiy.com • http://DotNetSpeak.com

More Related