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

https://github.com/mbrsagor/typescript

typeScript is a typed superset of JavaScript that compiles to plain JavaScript. If you use typeScript you may maintain and support all versions.
https://github.com/mbrsagor/typescript

javascript typescript typescript-compiler

Last synced: about 2 months ago
JSON representation

typeScript is a typed superset of JavaScript that compiles to plain JavaScript. If you use typeScript you may maintain and support all versions.

Awesome Lists containing this project

README

          

# typeScript

#### What is typeScript?
>> typeScript is a typed superset of JavaScript that compiles to plain JavaScript.

### Why & what typescript?
- Open source programming language.
- Typed superset javascript.
- Compiles down to plain javascript.
- Relation to javascrpt.
- Optional static typing and type interface.
- IDE Support.
- Fefactor code very easily.
- It's main programmng language of Angular.

###### How to automatically (watch) re-compile?
```tsc file_name --watch```
>> or
```tsc --watch```

### Install Dependency

1st time when I stated typeScript I was geting a simple error. Here I will share below how to run typescript:

```
npm init -y
npm install --save-dev typescript @types/node
echo 'console.log("test")' > index.ts
```

#### How to convert `typeScript` any mode? Please follow the command line hopefully it's will be work.

```tsc file_name.ts```

> If you like to opne `ES6` mode please run the command

`tsc file_name -t es6`

##### Here `-t` is target mode