


Брендан Эйх

- Нативный
- Простой
- Гибкий
- Быстрый
- Расширения

- Модульность
- Масштабирования
- Развитие


Андерс Хейлсберг
автор c#, delpi, pascal


TypeScript - типизированный JavaScript?

So shouldn’t we optionally call it Type?Script or [Type]Script ? Kidding aside, the types are just once piece of TypeScript. Perhaps a better name is simply ES+
John Papa

Статическая типизация, но при этом опциональная

Валидный JS код будет валидным TS кодом
На самом деле странно не использовать возможности языка в полной мере

Зная JS вы уже можете писать TS код

А в процессе изучать какие-то более сложные конструкции.

Types
-
boolean
-
number
-
string
-
Function
-
Object
-
Enum
-
Array
-
void
-
any
Interfaces, Classes, Inheritance, Generics, Modules etc.
www.typescriptlang.org/play
Typescript 2.x roadmap


Компилятор typescript




1.10.0
3 сентября 2015
0.1.0
24 декабря 2009
1.0.0
24 декабря 2010



spec 0.01
10 октября 2011
1.0
14 ноября 2014
1.17.1
10 июня 2016


Популярность
"Currently, many new and exciting JavaScript libraries are being released and the Dart platform is immature and hasn’t had time to fill out with all the options a developer might want. Being siloed into the Dart platform will be a very high price to pay to avoid the JavaScript minefield."
Why did the Angular team choose TypeScript over Dart?
https://jaxenter.com/angular-typescript-dart-115426.html


0.8
1 октября 2012
1.0
2 апреля 2014
1.8.10
9 апреля 2016



At the end of the day, Google’s development of Dart was intended to be the creation of a new web programming language. TypeScript follows a less radical approach than Dart – it’s a typed superset of JavaScript and existing JavaScript projects can be converted to TypeScript simply by renaming the source files from*.js to *.ts.
Why did the Angular team choose TypeScript over Dart?
https://jaxenter.com/angular-typescript-dart-115426.html
Angular 2: Dart vs TypeScript

As nice as Dart is, TypeScript wins because, at the end of the day, they both have to appeal to existing web developers. These developers, nearly without exception, use JavaScript. Their skills do not cleanly translate to Dart like they do to TypeScript. By virtue of not simply being a better JavaScript, Dart lost.
Angular 2: Dart vs TypeScript
Why did the Angular team choose TypeScript over Dart?
https://jaxenter.com/angular-typescript-dart-115426.html


Angular 2: AtScript
IDE
- alm.tools
- Atom
- Eclipse
- Emacs
- NetBeans
- Sublime Text
- Vim
- Visual Studio
- Visual Studio Code
- WebStorm






Недостатки
-
замедляет кодирование
-
компиляция
Преимущества
-
рефакторинг
-
ошибки при компиляции
-
ES6
-
модульность
-
развитие
Опыт использования

Typescript overview
By llexa313
Typescript overview
- 896