Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/overlineink/basics-of-typescript

Providing the basics TypeScript fundamentals for everyone that are getting start 🚀
https://github.com/overlineink/basics-of-typescript

fundamentals javascript typescript

Last synced: about 1 month ago
JSON representation

Providing the basics TypeScript fundamentals for everyone that are getting start 🚀

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/Microsoft/TypeScript.svg?branch=master)](https://travis-ci.org/Microsoft/TypeScript)
[![VSTS Build Status](https://typescript.visualstudio.com/_apis/public/build/definitions/cf7ac146-d525-443c-b23c-0d58337efebc/4/badge)](https://typescript.visualstudio.com/TypeScript/_build/latest?definitionId=4&view=logs)
[![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript)
[![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript)

# What is Typescript? 🤔

Typescript is not an entire new language. Its a superset for the Javascript, that means any valid Javascript code is also valid Typescript code. But typescript has additional features that not exists on Javascript supported on most browsers out there.

#### Strong Typing
For example in Typescript we've this concept of Strong or Static typing. If you already working with languages like Java, C# (...) when we define a variable we need to specify the type of that variable, but in Typescript typing is optional we don't need to use this feature, but using this feature make our application more predictable and make more easy to debug 'em when something goes wrong.

#### Object-oriented features
Typescript also brings quite of Object-oriented features that we've missed in Javascript for long time. We've concept of classes, interfaces, constructures, access modifiers like public and private, filds, generics and so on! You gonna learn this in this session.

#### Compile-time errors
And other benefit for using Typescript is that typescript can catch errors at compile-time instead of runtime. Of course not all kind of errors but a lot errors. To there is a compilation instead envolves, and when we compile our Typescript code we can catch this errors and fix 'em before deploy our application.

#### Great tooling
And finaly another benefit of using Typescript is that we get access to some great tools out there. One thing that I personaly love about Typescript is the Intelisense that we get in our code editors. Again you gonna see that in this session.
So Typescript is a beautifull language and basicly is a superset of Javascript, so a valid Javascript code is also valid Typescript code.

The browsers out there they not understand Typescript, is very unlikely they are going to support 'em in the future. So we need to compile or more acurasly transpile our Typescript code into Javascript. So this is part of building application, whenever we build an application Typescript compiler kick in and transpile Typescript code into Javascript that browser can understand.

👉 See the Oficiail Documentation [here](https://github.com/Microsoft/TypeScript#documentation)
or 🚀 jump to [Quick-start](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html) for newbies

# Where I can use Typescript?

Your can use Typescript to build modern applications for the web, mobile, or desktop.
* DEVELOP ACROSS ALL PLATFORMS
Learn one way to build applications with [Angular](https://angular.io) and reuse your code and abilities to build apps for any deployment target. For web, mobile web, native mobile and native desktop.

* Mobile Development with Typescript
[IONIC](https://ionicframework.com/) Build amazing apps in one codebase, for any platform (Android, iOS & Windows Phone), with the web.
Ionic lets web developers build, test, and deploy cross-platform hybrid mobile apps easier than ever.